Module: kamailio
Branch: 5.8
Commit: 0f0b34aaffffbab3e9454f2cbfa03af849868a55
URL: 
https://github.com/kamailio/kamailio/commit/0f0b34aaffffbab3e9454f2cbfa03af849868a55

Author: Victor Seva <linuxman...@torreviejawireless.org>
Committer: Victor Seva <linuxman...@torreviejawireless.org>
Date: 2025-03-11T13:25:21+01:00

core: fix NAPTR dns cache print

fix #4173

(cherry picked from commit df1eff2a52d0670900ee5bf15f2e7a2cd4d74da0)
(cherry picked from commit 2b3dd3b477afef88421377b703aefe217b9e915b)

---

Modified: src/core/dns_cache.c

---

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

---

diff --git a/src/core/dns_cache.c b/src/core/dns_cache.c
index 91da2592446..05da8bacd1f 100644
--- a/src/core/dns_cache.c
+++ b/src/core/dns_cache.c
@@ -3919,7 +3919,7 @@ int dns_cache_print_entry(rpc_t *rpc, void *ctx, struct 
dns_hash_entry *e)
                                }
                                s.s = ((struct naptr_rdata *)(rr->rdata))->repl;
                                s.len = ((struct naptr_rdata 
*)(rr->rdata))->repl_len;
-                               if(rpc->struct_add(sh, "S", "rr_regexp", &s) < 
0) {
+                               if(rpc->struct_add(sh, "S", "rr_replacement", 
&s) < 0) {
                                        rpc->fault(ctx, 500,
                                                        "Internal error adding 
naptre rr_replacement");
                                        return -1;

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to