fix seg fault

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6288 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant 2005-08-05 07:03:35 +00:00
parent 0a87b55fe8
commit d0cec3dd99
1 changed files with 1 additions and 1 deletions

View File

@ -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;