Commit e5fb13fb authored by Brian Wellington's avatar Brian Wellington
Browse files

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.
parent 134dc6ac
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment