Skip to content

Commit 19f8172

Browse files
committed
Zero private key before free
1 parent b44f9ac commit 19f8172

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

native/com_wolfssl_WolfSSLSession.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3640,6 +3640,7 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_WolfSSLSession_usePrivateKeyBuffer
36403640

36413641
ret = wolfSSL_use_PrivateKey_buffer(ssl, buff, (long)sz, format);
36423642

3643+
XMEMSET(buff, 0, (long)sz);
36433644
XFREE(buff, NULL, DYNAMIC_TYPE_TMP_BUFFER);
36443645

36453646
return ret;

0 commit comments

Comments
 (0)