pem: Clear possibly unencrypted key file from memory

This commit is contained in:
Tobias Brunner
2021-10-04 11:30:03 +02:00
parent e2e21f2486
commit 3a739424e1
+1 -1
View File
@@ -450,7 +450,7 @@ static void *load_from_file(char *file, credential_type_t type, int subtype,
return NULL;
}
cred = load_from_blob(*chunk, type, subtype, subject, flags);
chunk_unmap(chunk);
chunk_unmap_clear(chunk);
return cred;
}