]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh
authorBrian West <brian@freeswitch.org>
Tue, 30 Jun 2009 21:47:47 +0000 (21:47 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 30 Jun 2009 21:47:47 +0000 (21:47 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14068 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_nat.c

index 40f42ed98339008f5d33a01499c625e506df66d1..3fc746703e08ec032fea3971fe4c4adf05db212e 100644 (file)
@@ -256,7 +256,7 @@ static void *SWITCH_THREAD_FUNC switch_nat_multicast_runtime(switch_thread_t *th
                
                if (nat_globals.nat_type == SWITCH_NAT_TYPE_UPNP) {
                        /* look for our desc URL and servicetype in the packet */
-                       if (strstr(buf, nat_globals.descURL) && strstr(buf, nat_globals.data.servicetype)) {
+                       if (strstr(buf, nat_globals.descURL) && (buf == NULL || strstr(buf, nat_globals.data.servicetype))) {
                                if (strstr(buf, "NTS: ssdp:alive")) {
                                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "got UPnP keep alive packet: \n%s\n", buf);
                                        /* did pub ip change */