[asterisk-commits] seanbright: trunk r356966 - /trunk/channels/chan_iax2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Feb 27 10:12:55 CST 2012
Author: seanbright
Date: Mon Feb 27 10:12:51 2012
New Revision: 356966
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=356966
Log:
There isn't much point in saving off and restoring a value that we never use again.
Modified:
trunk/channels/chan_iax2.c
Modified: trunk/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=356966&r1=356965&r2=356966
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Mon Feb 27 10:12:51 2012
@@ -12332,11 +12332,9 @@
sockfd = ast_netsock_sockfd(sock);
nonlocal = 0;
} else {
- unsigned int orig_saddr = sin.sin_addr.s_addr;
/* INADDR_ANY matches anyway! */
sin.sin_addr.s_addr = INADDR_ANY;
if (ast_netsock_find(netsock, &sin)) {
- sin.sin_addr.s_addr = orig_saddr;
sock = ast_netsock_bind(outsock, io, srcaddr, port, qos.tos, qos.cos, socket_read, NULL);
if (sock) {
sockfd = ast_netsock_sockfd(sock);
More information about the asterisk-commits
mailing list