Browse code

core: init origproto to fix compiler warning

- GH #2543

(cherry picked from commit ef3233d14080936486d09edbe9598d7d92bd2f33)

Daniel-Constantin Mierla authored on 09/11/2020 11:13:51
Showing 1 changed files
... ...
@@ -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;