2
0
Эх сурвалжийг харах

core: dns_cache - NAPTR rr_preference set to number for rpc output

- it was set to string, causing a crash
- reported by GH #1680
Daniel-Constantin Mierla 7 жил өмнө
parent
commit
b29f333ab1
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/core/dns_cache.c

+ 1 - 1
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) {