diff options
Diffstat (limited to 'res/res_pjsip_endpoint_identifier_ip.c')
-rw-r--r-- | res/res_pjsip_endpoint_identifier_ip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/res/res_pjsip_endpoint_identifier_ip.c b/res/res_pjsip_endpoint_identifier_ip.c index 607e45402..43f1318a8 100644 --- a/res/res_pjsip_endpoint_identifier_ip.c +++ b/res/res_pjsip_endpoint_identifier_ip.c @@ -160,6 +160,10 @@ static int ip_identify_match_handler(const struct aco_option *opt, struct ast_va char *input_string = ast_strdupa(var->value); char *current_string; + if (ast_strlen_zero(var->value)) { + return 0; + } + while ((current_string = strsep(&input_string, ","))) { struct ast_sockaddr *addrs; int num_addrs = 0, error = 0, i; |