fix seg fault
authorRussell Bryant <russell@russellbryant.com>
Fri, 5 Aug 2005 07:03:35 +0000 (07:03 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 5 Aug 2005 07:03:35 +0000 (07:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6288 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 2eab458..238f3bf 100755 (executable)
@@ -7876,7 +7876,7 @@ static int peer_set_srcaddr(struct iax2_peer *peer, const char *srcaddr)
                        port = IAX_DEFAULT_PORTNO;
        }
        
-       if (!ast_get_ip(&sin, tmp)) {
+       if (!ast_get_ip(&sin, addr)) {
                struct ast_netsock *sock;
                int res;