From: Mathieu Rene Date: Fri, 5 Jun 2009 14:39:28 +0000 (+0000) Subject: fix X-Git-Tag: v1.0.4~607 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd3ad37b130e216d2f3bddf53b043885255256a9;p=thirdparty%2Ffreeswitch.git fix git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13635 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_nat.c b/src/switch_nat.c index a59533f36f..768cd54bf9 100644 --- a/src/switch_nat.c +++ b/src/switch_nat.c @@ -184,7 +184,7 @@ static switch_status_t switch_nat_add_mapping_pmp(switch_port_t port, switch_nat do { fd_set fds; - struct timeval timeout; + struct timeval timeout = { 1, 0 }; FD_ZERO(&fds); FD_SET(nat_globals.natpmp.s, &fds); getnatpmprequesttimeout(&nat_globals.natpmp, &timeout);