]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix reversed logic of if statement.
authorMark Michelson <mmichelson@digium.com>
Fri, 16 Jul 2010 05:42:24 +0000 (05:42 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 16 Jul 2010 05:42:24 +0000 (05:42 +0000)
Found based on message from Philip Prindeville on the
Asterisk Developers mailing list.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@276909 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 7d87e24dbf61f55bb55109d7d6009469560bc055..95999519f1def553d1a3d6b06f7383d91d3ec970 100644 (file)
@@ -3111,7 +3111,7 @@ static void ast_sip_ouraddrfor(const struct ast_sockaddr *them, struct ast_socka
                        }
                        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: