소스 검색

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 년 전
부모
커밋
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) {