2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

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.
This commit is contained in:
Brian Wellington
2001-01-11 03:11:30 +00:00
parent 134dc6ac2c
commit e5fb13fb23

View File

@@ -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);