user-record: securely erase pkcs#11 when assigned NULL too

This commit is contained in:
Lennart Poettering 2020-04-14 15:43:01 +02:00
parent 7b8d55b72c
commit d00f318323
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}