[sr-dev] git:master:b29f333a: core: dns_cache - NAPTR rr_preference set to number for rpc output
Daniel-Constantin Mierla
miconda at gmail.com
Thu Oct 18 18:17:01 CEST 2018
Module: kamailio
Branch: master
Commit: b29f333ab118c88d35fa51298cd7ef99857dbba7
URL: https://github.com/kamailio/kamailio/commit/b29f333ab118c88d35fa51298cd7ef99857dbba7
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-10-18T18:10:33+02:00
core: dns_cache - NAPTR rr_preference set to number for rpc output
- it was set to string, causing a crash
- reported by GH #1680
---
Modified: src/core/dns_cache.c
---
Diff: https://github.com/kamailio/kamailio/commit/b29f333ab118c88d35fa51298cd7ef99857dbba7.diff
Patch: https://github.com/kamailio/kamailio/commit/b29f333ab118c88d35fa51298cd7ef99857dbba7.patch
---
diff --git a/src/core/dns_cache.c b/src/core/dns_cache.c
index d9fc6a21cc..e60be2cd05 100644
--- a/src/core/dns_cache.c
+++ b/src/core/dns_cache.c
@@ -3739,7 +3739,7 @@ int dns_cache_print_entry(rpc_t* rpc, void* ctx, struct dns_hash_entry* e)
}
break;
case T_NAPTR:
- if(rpc->struct_add(sh, "ds",
+ if(rpc->struct_add(sh, "dd",
"rr_order", ((struct naptr_rdata*)(rr->rdata))->order,
"rr_preference", ((struct naptr_rdata*)(rr->rdata))->pref)
<0) {
More information about the sr-dev
mailing list