mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zkey: Fix memory leak during validate and reencipher command
Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
798967aba3
commit
04b0b43739
@@ -2454,7 +2454,6 @@ static int _keystore_display_apqn_status(struct keystore *keystore,
|
||||
if (apqns == NULL)
|
||||
return 0;
|
||||
|
||||
apqns = properties_get(properties, PROP_NAME_APQNS);
|
||||
key_type = properties_get(properties, PROP_NAME_KEY_TYPE);
|
||||
rc = cross_check_apqns(apqns, mkvp,
|
||||
get_min_card_level_for_keytype(key_type),
|
||||
@@ -2867,8 +2866,7 @@ static int _keystore_process_reencipher(struct keystore *keystore,
|
||||
rc = _keystore_perform_reencipher(keystore, name, info->lib,
|
||||
¶ms, secure_key,
|
||||
secure_key_size, is_old_mk,
|
||||
properties_get(properties,
|
||||
PROP_NAME_APQNS));
|
||||
apqns);
|
||||
if (rc < 0)
|
||||
goto out;
|
||||
if (rc > 0) {
|
||||
|
||||
Reference in New Issue
Block a user