From ef3233d14080936486d09edbe9598d7d92bd2f33 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Mon, 9 Nov 2020 12:13:51 +0100 Subject: [PATCH] core: init origproto to fix compiler warning - GH #2543 --- src/core/dns_cache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/dns_cache.c b/src/core/dns_cache.c index 9a4b90fba30..9a63a5bd214 100644 --- a/src/core/dns_cache.c +++ b/src/core/dns_cache.c @@ -3261,6 +3261,7 @@ inline static int dns_naptr_sip_resolve(struct dns_srv_handle* h, str* name, ret=-E_DNS_NO_NAPTR; if(proto) origproto=*proto; + else origproto = PROTO_NONE; if (dns_hash==0){ /* not init => use normal, non-cached version */ LM_WARN("called before dns cache initialization\n"); h->srv=h->a=0;