Skip to content

Commit b592aec

Browse files
Code review feedback
1 parent f2b8b48 commit b592aec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8303,7 +8303,7 @@ size_t wolfSSL_get_client_random(const WOLFSSL* ssl, unsigned char* out,
83038303
* decoded contents. InitX509 only zeroes the pointers, so free
83048304
* the existing allocations first to avoid orphaning them. */
83058305
FreeX509(x509);
8306-
InitX509(x509, 0, NULL);
8306+
InitX509(x509, 0, x509->heap);
83078307
}
83088308
ret = CopyDecodedToX509(x509, cert);
83098309
}

0 commit comments

Comments
 (0)