Module: kamailio
Branch: master
Commit: ef3233d14080936486d09edbe9598d7d92bd2f33
URL: 
https://github.com/kamailio/kamailio/commit/ef3233d14080936486d09edbe9598d7d92bd2f33

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2020-11-09T12:19:54+01:00

core: init origproto to fix compiler warning

- GH #2543

---

Modified: src/core/dns_cache.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/ef3233d14080936486d09edbe9598d7d92bd2f33.diff
Patch: 
https://github.com/kamailio/kamailio/commit/ef3233d14080936486d09edbe9598d7d92bd2f33.patch

---

diff --git a/src/core/dns_cache.c b/src/core/dns_cache.c
index 9a4b90fba3..9a63a5bd21 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;


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to