Skip to content

Commit 3a83c33

Browse files
author
Andras Fekete
committed
Fix compilation error
1 parent f419e23 commit 3a83c33

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/internal.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4560,7 +4560,9 @@ void FreeX509(WOLFSSL_X509* x509)
45604560
XFREE(x509->sig.buffer, x509->heap, DYNAMIC_TYPE_SIGNATURE);
45614561
x509->sig.buffer = NULL;
45624562
#if defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL)
4563-
XFREE(x509->authKeyIdSrc, x509->heap, DYNAMIC_TYPE_X509_EXT);
4563+
if (x509->authKeyIdSrc != NULL) {
4564+
XFREE(x509->authKeyIdSrc, x509->heap, DYNAMIC_TYPE_X509_EXT);
4565+
}
45644566
else {
45654567
XFREE(x509->authKeyId, x509->heap, DYNAMIC_TYPE_X509_EXT);
45664568
}

0 commit comments

Comments
 (0)