Commit b274f3fa authored by Mark Andrews's avatar Mark Andrews
Browse files

enforce DS hash exists

parent a32a4ed9
......@@ -166,7 +166,7 @@ generic_fromwire_ds(ARGS_FROMWIRE) {
/*
* Check digest lengths if we know them.
*/
if (sr.length < 4 ||
if (sr.length < 5 ||
(sr.base[3] == DNS_DSDIGEST_SHA1 &&
sr.length < 4 + ISC_SHA1_DIGESTLENGTH) ||
(sr.base[3] == DNS_DSDIGEST_SHA256 &&
......
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