mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
In hmac_createctx free ctx on isc_hmac_init failure
(cherry picked from commit d22257a370)
This commit is contained in:
parent
2536012463
commit
0d56344a8e
1 changed files with 1 additions and 0 deletions
|
|
@ -165,6 +165,7 @@ hmac_createctx(const isc_md_type_t *type, const dst_key_t *key,
|
|||
result = isc_hmac_init(ctx, hkey->key, isc_md_type_get_block_size(type),
|
||||
type);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
isc_hmac_free(ctx);
|
||||
return (DST_R_UNSUPPORTEDALG);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue