Skip to content

Commit 4a3fca3

Browse files
committed
Null-check pubkey fileBytes param
1 parent 8600cd7 commit 4a3fca3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

native/com_wolfssl_WolfSSLCertificate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_WolfSSLCertificate_X509_1set_1pubkey_1na
190190
(void)jcl;
191191
(void)keyType;
192192

193-
if (jenv == NULL || x509 == NULL) {
193+
if (jenv == NULL || x509 == NULL || fileBytes == NULL) {
194194
return WOLFSSL_FAILURE;
195195
}
196196

0 commit comments

Comments
 (0)