mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
backport fix from HEAD branch
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-2@7184 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -8200,6 +8200,8 @@ static struct iax2_peer *build_peer(const char *name, struct ast_variable *v, in
|
||||
free(peer);
|
||||
return NULL;
|
||||
}
|
||||
if (!peer->addr.sin_port)
|
||||
peer->addr.sin_port = htons(IAX_DEFAULT_PORTNO);
|
||||
}
|
||||
if (!maskfound)
|
||||
inet_aton("255.255.255.255", &peer->mask);
|
||||
|
Reference in New Issue
Block a user