Modified: freeswitch/trunk/src/switch_nat.c (14622 => 14623)
--- freeswitch/trunk/src/switch_nat.c 2009-08-24 19:41:40 UTC (rev 14622)
+++ freeswitch/trunk/src/switch_nat.c 2009-08-24 20:16:23 UTC (rev 14623)
@@ -245,7 +245,7 @@
static void *SWITCH_THREAD_FUNC switch_nat_multicast_runtime(switch_thread_t *thread, void *obj)
{
char *buf = NULL;
- char newip[16];
+ char newip[16] = "";
char *pos;
switch_event_t *event = NULL;
@@ -283,6 +283,7 @@
if (!strncmp(pos, "ssdp:alive", 10)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "got UPnP keep alive packet: \n%s\n", buf);
/* did pub ip change */
+ newip[0] = '\0';
if (get_upnp_pubaddr(newip) != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Unable to get current pubaddr after receiving UPnP keep alive packet.\n");
}