Skip to content

Commit 72a261c

Browse files
committed
Fix from review
1 parent e350064 commit 72a261c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/x509.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11714,11 +11714,14 @@ WOLF_STACK_OF(WOLFSSL_X509_OBJECT)* wolfSSL_sk_X509_OBJECT_deep_copy(
1171411714
if (req->subjKeyIdSz > CTC_MAX_SKID_SIZE) {
1171511715
WOLFSSL_MSG("Subject Key ID too large");
1171611716
WOLFSSL_ERROR_VERBOSE(BUFFER_E);
11717+
cert->skidSz = 0;
1171711718
ret = WOLFSSL_FAILURE;
1171811719
}
1171911720
else if (req->subjKeyIdSz > 0) {
1172011721
if (req->subjKeyId == NULL) {
1172111722
WOLFSSL_MSG("Subject Key ID missing");
11723+
WOLFSSL_ERROR_VERBOSE(BAD_FUNC_ARG);
11724+
cert->skidSz = 0;
1172211725
ret = WOLFSSL_FAILURE;
1172311726
}
1172411727
else {

0 commit comments

Comments
 (0)