]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix this for now
authorBrian West <brian@freeswitch.org>
Tue, 30 Jun 2009 19:36:44 +0000 (19:36 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 30 Jun 2009 19:36:44 +0000 (19:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14057 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_nat.c

index 708c4a5fb45f11f69daf1b914fe91fb66c5f9884..bbebc3a9b8ff616b860d252f5c760af9fb94c744 100644 (file)
@@ -156,8 +156,9 @@ static int get_pmp_pubaddr(char *pub_addr)
                goto end;
        }
 
+
        pubaddr = inet_ntoa(response.pnu.publicaddress.addr);
-       switch_set_string(pub_addr, pubaddr);
+       switch_set_string(nat_globals.pub_addr, pubaddr);
        nat_globals.nat_type = SWITCH_NAT_TYPE_PMP;
        
        closenatpmp(&natpmp);