mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 03:04:19 +00:00
Reverse sense of an error test when reading from astdb.
(closes issue #18545) Reported by: jcovert Patches: chan_iax2.c.patch uploaded by jcovert (license 551) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@305692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -8617,7 +8617,7 @@ static void reg_source_db(struct iax2_peer *p)
|
||||
}
|
||||
*expiry++ = '\0';
|
||||
|
||||
if (ast_sockaddr_parse(&p->addr, data, PARSE_PORT_REQUIRE)) {
|
||||
if (!ast_sockaddr_parse(&p->addr, data, PARSE_PORT_REQUIRE)) {
|
||||
ast_log(LOG_NOTICE, "IAX/Registry astdb host:port invalid - '%s'\n", data);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user