Skip to content

Commit 1fb730d

Browse files
committed
Null-check REQ pubkey fileBytes param
1 parent ad12957 commit 1fb730d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

native/com_wolfssl_WolfSSLCertRequest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_WolfSSLCertRequest_X509_1REQ_1set_1pubke
380380
(void)jcl;
381381
(void)keyType;
382382

383-
if (jenv == NULL || x509 == NULL) {
383+
if (jenv == NULL || x509 == NULL || fileBytes == NULL) {
384384
return WOLFSSL_FAILURE;
385385
}
386386

0 commit comments

Comments
 (0)