From d6fbfd28ea82e425740de903ddc67f7d9e9f82e7 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 3 Apr 2002 02:44:57 +0000 Subject: [PATCH] 1243. [bug] It was possible to trigger a REQUIRE() in dns_message_findtype(). [RT #2659] --- CHANGES | 3 +++ lib/dns/resolver.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index e4123d09c6..1a1fccfd3f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1243. [bug] It was possible to trigger a REQUIRE() in + dns_message_findtype(). [RT #2659] + 1242. [bug] named-checkzone failed if a journal existed. [RT #2657] 1241. [bug] Drop received UDP messsages with a zero source port diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 2944246ba7..ba18c62ad2 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: resolver.c,v 1.240 2002/02/20 03:34:20 marka Exp $ */ +/* $Id: resolver.c,v 1.241 2002/04/03 02:44:57 marka Exp $ */ #include @@ -3329,6 +3329,7 @@ check_related(void *arg, dns_name_t *addname, dns_rdatatype_t type) { /* * Do we have its SIG too? */ + rdataset = NULL; result = dns_message_findtype(name, dns_rdatatype_sig, type, &rdataset);