[sr-dev] git:5.4:b72ab5e5: core: init origproto to fix compiler warning
Daniel-Constantin Mierla
miconda at gmail.com
Thu Nov 19 13:41:01 CET 2020
Module: kamailio
Branch: 5.4
Commit: b72ab5e554d230b36a7c6dbc79b8e86b5d0c70e2
URL: https://github.com/kamailio/kamailio/commit/b72ab5e554d230b36a7c6dbc79b8e86b5d0c70e2
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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;
More information about the sr-dev
mailing list