Skip to content

Commit ad12957

Browse files
committed
Null-check serialBytes param
1 parent 4a3fca3 commit ad12957

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
@@ -551,7 +551,7 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_WolfSSLCertificate_X509_1set_1serialNumb
551551
int ret = WOLFSSL_SUCCESS;
552552
(void)jcl;
553553

554-
if (jenv == NULL || x509 == NULL) {
554+
if (jenv == NULL || x509 == NULL || serialBytes == NULL) {
555555
return WOLFSSL_FAILURE;
556556
}
557557

0 commit comments

Comments
 (0)