Skip to content
Snippets Groups Projects
Commit dfba265a authored by Mark Michelson's avatar Mark Michelson
Browse files

Fix reversed logic of if statement.

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
parent a76c8e36
No related branches found
No related tags found
No related merge requests found
...@@ -3111,7 +3111,7 @@ static void ast_sip_ouraddrfor(const struct ast_sockaddr *them, struct ast_socka ...@@ -3111,7 +3111,7 @@ static void ast_sip_ouraddrfor(const struct ast_sockaddr *them, struct ast_socka
} }
externexpire = time(NULL) + externrefresh; externexpire = time(NULL) + externrefresh;
} }
if (ast_sockaddr_isnull(&externip)) { if (!ast_sockaddr_isnull(&externip)) {
ast_sockaddr_copy(us, &externip); ast_sockaddr_copy(us, &externip);
switch (p->socket.type) { switch (p->socket.type) {
case SIP_TRANSPORT_TCP: case SIP_TRANSPORT_TCP:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment