mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Fix avoidSysCalls logic
This commit is contained in:
@ -20040,7 +20040,7 @@ int wolfSSL_DupSession(const WOLFSSL_SESSION* input, WOLFSSL_SESSION* output,
|
|||||||
if (ticBuff == NULL || ticLenAlloc < input->ticketLen) {
|
if (ticBuff == NULL || ticLenAlloc < input->ticketLen) {
|
||||||
/* allocate new one */
|
/* allocate new one */
|
||||||
byte* tmp;
|
byte* tmp;
|
||||||
if (!avoidSysCalls) {
|
if (avoidSysCalls) {
|
||||||
WOLFSSL_MSG("Failed to allocate memory for ticket when avoiding"
|
WOLFSSL_MSG("Failed to allocate memory for ticket when avoiding"
|
||||||
" syscalls");
|
" syscalls");
|
||||||
output->ticket = ticBuff;
|
output->ticket = ticBuff;
|
||||||
|
Reference in New Issue
Block a user