Merged revisions 305692 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r305692 | qwell | 2011-02-01 16:48:16 -0600 (Tue, 01 Feb 2011) | 7 lines 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: http://svn.digium.com/svn/asterisk/trunk@305693 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
d7508ff959
commit
76957d9b40
|
@ -8614,7 +8614,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