From: Russell Bryant Date: Tue, 1 Apr 2008 22:25:45 +0000 (+0000) Subject: Fix a typo that prevented configuration of non-dynamic peers. X-Git-Tag: 1.6.2.0-beta1~2567 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=094fc2c6168c13fa3635f16109e1d4410c80ed07;p=thirdparty%2Fasterisk.git Fix a typo that prevented configuration of non-dynamic peers. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@112351 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index ce89db72f9..2e82944300 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -10095,7 +10095,7 @@ static struct iax2_peer *build_peer(const char *name, struct ast_variable *v, st /* Non-dynamic. Make sure we become that way if we're not */ AST_SCHED_DEL(sched, peer->expire); ast_clear_flag(peer, IAX_DYNAMIC); - if (ast_dnsmgr_lookup(v->value, &peer->addr, &peer->dnsmgr, srvlookup ? "_iax._udp" : NULL)); + if (ast_dnsmgr_lookup(v->value, &peer->addr, &peer->dnsmgr, srvlookup ? "_iax._udp" : NULL)) return peer_unref(peer); if (!peer->addr.sin_port) peer->addr.sin_port = htons(IAX_DEFAULT_PORTNO);