Browse code

core: avoid doing dns srv again after naptr function that includes srv lookup

(cherry picked from commit 80935f9e8bbe20e5c320828183999b5d395ec34c)

Daniel-Constantin Mierla authored on 11/07/2013 22:44:51
Showing 1 changed files
... ...
@@ -1515,6 +1515,7 @@ struct hostent* _sip_resolvehost(str* name, unsigned short* port, char* proto)
1515 1515
 #ifdef USE_NAPTR
1516 1516
 	if (cfg_get(core, core_cfg, dns_try_naptr))
1517 1517
 		res = naptr_sip_resolvehost(name, port, proto);
1518
+	else
1518 1519
 #endif
1519 1520
 	res = srv_sip_resolvehost(name, 0, port, proto, 0, 0);
1520 1521
 	if( unlikely(!res) ){