Merge pull request #927 in FS/freeswitch from ~SJTHOMASON/freeswitch:bugfix/FS-9423-segfault-if-sofia-profile-param-local-network-acl to master

* commit '8928852d66c5f1c00c52bf8cf0c56372bd36540f':
  FS-9423 #resolve Handle null value in ACL list name
This commit is contained in:
Mike Jerris 2016-08-16 13:16:28 -05:00
commit 42936d2187
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;