[svn-commits] mmichelson: trunk r276909 - /trunk/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jul 16 00:42:28 CDT 2010


Author: mmichelson
Date: Fri Jul 16 00:42:24 2010
New Revision: 276909

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=276909
Log:
Fix reversed logic of if statement.

Found based on message from Philip Prindeville on the
Asterisk Developers mailing list.


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=276909&r1=276908&r2=276909
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Jul 16 00:42:24 2010
@@ -3111,7 +3111,7 @@
 			}
 			externexpire = time(NULL) + externrefresh;
 		}
-		if (ast_sockaddr_isnull(&externip)) {
+		if (!ast_sockaddr_isnull(&externip)) {
 			ast_sockaddr_copy(us, &externip);
 			switch (p->socket.type) {
 			case SIP_TRANSPORT_TCP:




More information about the svn-commits mailing list