Module: kamailio
Branch: 5.4
Commit: b72ab5e554d230b36a7c6dbc79b8e86b5d0c70e2
URL: 
https://github.com/kamailio/kamailio/commit/b72ab5e554d230b36a7c6dbc79b8e86b5d0c70e2

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2020-11-19T13:26:19+01:00

core: init origproto to fix compiler warning

- GH #2543

(cherry picked from commit ef3233d14080936486d09edbe9598d7d92bd2f33)

---

Modified: src/core/dns_cache.c

---

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

---

diff --git a/src/core/dns_cache.c b/src/core/dns_cache.c
index e383786de2..05dc3f98ba 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
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to