Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
e5fb13fb
Commit
e5fb13fb
authored
Jan 11, 2001
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/rdata/generic/tkey_249.c
View file @
e5fb13fb
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: tkey_249.c,v 1.4
2
2001/01/
09 21:54:49
bwelling Exp $ */
/* $Id: tkey_249.c,v 1.4
3
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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment