Skip to content

Commit 4a3f543

Browse files
committed
Secure-clear decrypted key on free
1 parent 3bc274c commit 4a3f543

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp_dec_epki2pki.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ static int wp_epki2pki_decode(wp_Epki2Pki* ctx, OSSL_CORE_BIO* coreBio,
261261
}
262262

263263
/* Dispose of the EPKI data buffer. */
264-
OPENSSL_free(data);
264+
OPENSSL_clear_free(data, len);
265265

266266
OPENSSL_cleanse(password, sizeof(password));
267267

0 commit comments

Comments
 (0)