Browse code

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

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