mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Merge branch '3879-hmac_createctx-fails-to-free-context-on-isc_hmac_init-failure' into 'main'
Resolve "hmac_createctx fails to free context on isc_hmac_init failure" Closes #3879 See merge request isc-projects/bind9!7549
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user