[svn-commits] seanbright: branch 10 r355902 - in /branches/10: ./ channels/chan_iax2.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sun Feb 19 11:50:32 CST 2012


Author: seanbright
Date: Sun Feb 19 11:50:29 2012
New Revision: 355902

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=355902
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.
........

Merged revisions 355901 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/10/   (props changed)
    branches/10/channels/chan_iax2.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/channels/chan_iax2.c?view=diff&rev=355902&r1=355901&r2=355902
==============================================================================
--- branches/10/channels/chan_iax2.c (original)
+++ branches/10/channels/chan_iax2.c Sun Feb 19 11:50:29 2012
@@ -12508,6 +12508,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 svn-commits mailing list