Module: kamailio
Branch: 6.0
Commit: 2b3dd3b477afef88421377b703aefe217b9e915b
URL: 
https://github.com/kamailio/kamailio/commit/2b3dd3b477afef88421377b703aefe217b9e915b

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

core: fix NAPTR dns cache print

fix #4173

(cherry picked from commit df1eff2a52d0670900ee5bf15f2e7a2cd4d74da0)

---

Modified: src/core/dns_cache.c

---

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

---

diff --git a/src/core/dns_cache.c b/src/core/dns_cache.c
index 1507e890150..65445fcf8f5 100644
--- a/src/core/dns_cache.c
+++ b/src/core/dns_cache.c
@@ -3921,7 +3921,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