FS-9423 #resolve Handle null value in ACL list name

This commit is contained in:
Spencer Thomason 2016-08-12 13:38:10 -07:00
parent eeba18394d
commit 8928852d66
1 changed files with 4 additions and 0 deletions

View File

@ -1373,6 +1373,10 @@ SWITCH_DECLARE(switch_bool_t) switch_check_network_list_ip_token(const char *ip_
switch_bool_t ok = SWITCH_FALSE;
char *ipv4 = NULL;
if (!list_name) {
return SWITCH_FALSE;
}
if ((ipv4 = switch_network_ipv4_mapped_ipv6_addr(ip_str))) {
ip_str = ipv4;
ipv6 = NULL;