From 06022e85a3535ec8f98f5f7efa5f611b1c56c60b Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Thu, 18 Aug 2022 19:43:40 +0200 Subject: [PATCH] Fix avoidSysCalls logic --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 8a3c5111a..b9bbb336e 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -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;