Revision
14068
Author
brian
Date
2009-06-30 16:47:47 -0500 (Tue, 30 Jun 2009)

Log Message

 doh 

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_nat.c (14067 => 14068)


--- freeswitch/trunk/src/switch_nat.c	2009-06-30 21:45:16 UTC (rev 14067)
+++ freeswitch/trunk/src/switch_nat.c	2009-06-30 21:47:47 UTC (rev 14068)
@@ -256,7 +256,7 @@
 		
 		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 */