Module: kamailio
Branch: 5.1
Commit: 2a5255880fb9b22bcc5d1615546935476facc787
URL:
https://github.com/kamailio/kamailio/commit/2a5255880fb9b22bcc5d16155469354…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-10-19T08:29:08+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
(cherry picked from commit b29f333ab118c88d35fa51298cd7ef99857dbba7)
---
Modified: src/core/dns_cache.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2a5255880fb9b22bcc5d16155469354…
Patch:
https://github.com/kamailio/kamailio/commit/2a5255880fb9b22bcc5d16155469354…
---
diff --git a/src/core/dns_cache.c b/src/core/dns_cache.c
index ab91a2077a..6363cefe38 100644
--- a/src/core/dns_cache.c
+++ b/src/core/dns_cache.c
@@ -3882,7 +3882,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) {