Skip to content

Commit d15a66e

Browse files
Code review feedback
1 parent a7fe5d9 commit d15a66e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ssl_api_cert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2726,7 +2726,7 @@ int wolfSSL_get0_chain_certs(WOLFSSL *ssl, WOLF_STACK_OF(WOLFSSL_X509) **sk)
27262726
* decoded contents. InitX509 only zeroes the pointers, so free
27272727
* the existing allocations first to avoid orphaning them. */
27282728
FreeX509(x509);
2729-
InitX509(x509, 0, NULL);
2729+
InitX509(x509, 0, x509->heap);
27302730
}
27312731
ret = CopyDecodedToX509(x509, cert);
27322732
}

0 commit comments

Comments
 (0)