mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-14 20:30:04 +01:00
Fix data leak in format and reencrypt command.
This commit is contained in:
@@ -1226,11 +1226,12 @@ out:
|
||||
*r_cd = cd;
|
||||
*r_password = password;
|
||||
*r_passwordLen = passwordLen;
|
||||
return 0;
|
||||
} else {
|
||||
crypt_free(cd);
|
||||
crypt_safe_free(password);
|
||||
}
|
||||
crypt_free(cd);
|
||||
|
||||
crypt_safe_free(key);
|
||||
crypt_safe_free(password);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user