mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
user-record: securely erase pkcs#11 when assigned NULL too
This commit is contained in:
parent
7b8d55b72c
commit
d00f318323
|
@ -706,7 +706,7 @@ static int dispatch_pkcs11_key_data(const char *name, JsonVariant *variant, Json
|
|||
int r;
|
||||
|
||||
if (json_variant_is_null(variant)) {
|
||||
k->data = mfree(k->data);
|
||||
k->data = erase_and_free(k->data);
|
||||
k->size = 0;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue