Fix avoidSysCalls logic

This commit is contained in:
Juliusz Sosinowicz
2022-08-18 19:43:40 +02:00
parent 4d0ea62857
commit 06022e85a3

View File

@ -20040,7 +20040,7 @@ int wolfSSL_DupSession(const WOLFSSL_SESSION* input, WOLFSSL_SESSION* output,
if (ticBuff == NULL || ticLenAlloc < input->ticketLen) {
/* allocate new one */
byte* tmp;
if (!avoidSysCalls) {
if (avoidSysCalls) {
WOLFSSL_MSG("Failed to allocate memory for ticket when avoiding"
" syscalls");
output->ticket = ticBuff;