From e5fb13fb23776df1678e47f8e120c58214bc650f Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Thu, 11 Jan 2001 03:11:30 +0000 Subject: [PATCH] The asserts in fromstruct were too strong - it's possible to have a non-NULL key and keylen == 0 if the pointer is to a 0 byte allocation. --- lib/dns/rdata/generic/tkey_249.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/dns/rdata/generic/tkey_249.c b/lib/dns/rdata/generic/tkey_249.c index 71b76b2a29..a310329242 100644 --- a/lib/dns/rdata/generic/tkey_249.c +++ b/lib/dns/rdata/generic/tkey_249.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: tkey_249.c,v 1.42 2001/01/09 21:54:49 bwelling Exp $ */ +/* $Id: tkey_249.c,v 1.43 2001/01/11 03:11:30 bwelling Exp $ */ /* * Reviewed: Thu Mar 16 17:35:30 PST 2000 by halley. @@ -347,10 +347,6 @@ fromstruct_tkey(ARGS_FROMSTRUCT) { REQUIRE(source != NULL); REQUIRE(tkey->common.rdtype == type); REQUIRE(tkey->common.rdclass == rdclass); - REQUIRE((tkey->key == NULL && tkey->keylen == 0) || - (tkey->key != NULL && tkey->keylen != 0)); - REQUIRE((tkey->other == NULL && tkey->otherlen == 0) || - (tkey->other != NULL && tkey->otherlen != 0)); UNUSED(rdclass);