- GH #2543
(cherry picked from commit ef3233d14080936486d09edbe9598d7d92bd2f33)
... | ... |
@@ -3261,6 +3261,7 @@ inline static int dns_naptr_sip_resolve(struct dns_srv_handle* h, str* name, |
3261 | 3261 |
|
3262 | 3262 |
ret=-E_DNS_NO_NAPTR; |
3263 | 3263 |
if(proto) origproto=*proto; |
3264 |
+ else origproto = PROTO_NONE; |
|
3264 | 3265 |
if (dns_hash==0){ /* not init => use normal, non-cached version */ |
3265 | 3266 |
LM_WARN("called before dns cache initialization\n"); |
3266 | 3267 |
h->srv=h->a=0; |