mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 21:22:09 -04:00
free hkey on error
This commit is contained in:
parent
bd3163578b
commit
3219a873a9
1 changed files with 1 additions and 0 deletions
|
|
@ -360,6 +360,7 @@ hmac_fromdns(isc_md_type_t type, dst_key_t *key, isc_buffer_t *data) {
|
|||
if (r.length > (unsigned int)isc_md_type_get_block_size(type)) {
|
||||
if (isc_md(type, r.base, r.length, hkey->key, &keylen)
|
||||
!= ISC_R_SUCCESS) {
|
||||
isc_mem_put(key->mctx, hkey, sizeof(dst_hmac_key_t));
|
||||
return (DST_R_OPENSSLFAILURE);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue