Module: sip-router
Branch: master
Commit: 80935f9e8bbe20e5c320828183999b5d395ec34c
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=80935f9…
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
---
resolve.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/resolve.c b/resolve.c
index 2005a0b..be47260 100644
--- a/resolve.c
+++ b/resolve.c
@@ -1679,6 +1679,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) ){