From: Sean Bright Date: Sun, 19 Feb 2012 17:50:29 +0000 (+0000) Subject: Set the length of the ast_sockaddr, so that we can set it's port later. X-Git-Tag: 10.3.0-rc1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b13d1d36ae5ae55f9b2632363688165ad7d39ba;p=thirdparty%2Fasterisk.git Set the length of the ast_sockaddr, so that we can set it's port later. Without this, the call to ast_sockaddr_set_port a few lines later is a noop. ........ Merged revisions 355901 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@355902 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 91e5830b27..6935d839f9 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -12508,6 +12508,7 @@ static struct iax2_peer *build_peer(const char *name, struct ast_variable *v, st peer->pokeexpire = -1; peer->sockfd = defaultsockfd; peer->addr.ss.ss_family = AF_INET; + peer->addr.len = sizeof(struct sockaddr_in); if (ast_string_field_init(peer, 32)) peer = peer_unref(peer); }