[asterisk-commits] seanbright: branch 1.8 r355901 - /branches/1.8/channels/chan_iax2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Feb 19 11:49:50 CST 2012
Author: seanbright
Date: Sun Feb 19 11:49:45 2012
New Revision: 355901
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=355901
Log:
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.
Modified:
branches/1.8/channels/chan_iax2.c
Modified: branches/1.8/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_iax2.c?view=diff&rev=355901&r1=355900&r2=355901
==============================================================================
--- branches/1.8/channels/chan_iax2.c (original)
+++ branches/1.8/channels/chan_iax2.c Sun Feb 19 11:49:45 2012
@@ -12388,6 +12388,7 @@
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);
}
More information about the asterisk-commits
mailing list