]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9423 #resolve Handle null value in ACL list name
authorSpencer Thomason <spencer@whiteskycommunications.com>
Fri, 12 Aug 2016 20:38:10 +0000 (13:38 -0700)
committerSpencer Thomason <spencer@whiteskycommunications.com>
Fri, 12 Aug 2016 20:38:10 +0000 (13:38 -0700)
src/switch_core.c

index 039531bb864b9bcad95cfaad9c34af0054ae9527..e06b6b1f391542d04df5348b3acbd3b56bb280eb 100644 (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;