aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2011-02-01 22:48:16 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2011-02-01 22:48:16 +0000
commit70de5e15d832b06476702329a5730e87846946b7 (patch)
tree2a8e7119818e3e3866e366688f1d766a7d98b988
parent33ad4924b1d52951cad73408653cd573a41a18fe (diff)
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/branches/1.8@305692 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_iax2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 426c3256a..2bbaa277c 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -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;
}