mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 03:02:15 +00:00
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
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user