wrap res assignment in else statement

This commit is contained in:
Ruby Martin
2025-07-14 17:07:58 -06:00
parent 8f00fc2594
commit dc345553df

View File

@@ -1376,7 +1376,9 @@ void* wolfSSL_Realloc(void *ptr, size_t size, void* heap, int type)
WOLFSSL_MSG("Error IO memory was not large enough");
res = NULL; /* return NULL in error case */
}
res = pt->buffer;
else {
res = pt->buffer;
}
}
else
#endif