mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-20 21:52:55 -05:00
zonemd, harden result length for unsupported algo in nettle digest final.
This commit is contained in:
parent
5e477e8a31
commit
1dc4d7a9f6
1 changed files with 1 additions and 0 deletions
|
|
@ -1636,6 +1636,7 @@ int secalgo_hash_final(struct secalgo_hash* hash, uint8_t* result,
|
|||
sha512_digest(&hash->ctx512, SHA512_DIGEST_SIZE,
|
||||
(unsigned char*)result);
|
||||
} else {
|
||||
*resultlen = 0;
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue