Fix compile error.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 29 Nov 2012 22:34:24 +0000 (22:34 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 29 Nov 2012 22:34:24 +0000 (22:34 +0000)
(issue ASTERISK-20724)
........

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

Merged revisions 376865 from http://svn.asterisk.org/svn/asterisk/branches/10
........

Merged revisions 376866 from http://svn.asterisk.org/svn/asterisk/branches/11

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

channels/chan_sip.c

index 0dc6069..30177d1 100644 (file)
@@ -17897,7 +17897,7 @@ static void check_via(struct sip_pvt *p, struct sip_request *req)
                if (ast_sockaddr_resolve_first(&tmp, c, 0)) {
                        ast_log(LOG_WARNING, "Could not resolve socket address for '%s'\n", c);
                        port = STANDARD_SIP_PORT;
-               } else if (!(port = ast_sockaddr_port(&tmp)) {
+               } else if (!(port = ast_sockaddr_port(&tmp))) {
                        port = STANDARD_SIP_PORT;
                        ast_sockaddr_set_port(&tmp, port);
                }