Module: sip-router
Branch: 4.0
Commit: f8826df994a6baac9cfee219abafa3e1b82ee4f8
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f8826df…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Jul 12 00:44:51 2013 +0200
core: avoid doing dns srv again after naptr function that includes srv lookup
(cherry picked from commit 80935f9e8bbe20e5c320828183999b5d395ec34c)
---
resolve.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/resolve.c b/resolve.c
index 0a77ed7..e739f4b 100644
--- a/resolve.c
+++ b/resolve.c
@@ -1702,6 +1702,7 @@ struct hostent* _sip_resolvehost(str* name, unsigned short* port,
char* proto)
#ifdef USE_NAPTR
if (cfg_get(core, core_cfg, dns_try_naptr))
res = naptr_sip_resolvehost(name, port, proto);
+ else
#endif
res = srv_sip_resolvehost(name, 0, port, proto, 0, 0);
if( unlikely(!res) ){