mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
src/internal.c: in FreeSskeArgs(), move nullness check on args to the start, and make it unconditional, to resolve nullPointerRedundantChecks.
This commit is contained in:
@ -35719,6 +35719,9 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
|
|
||||||
(void)ssl;
|
(void)ssl;
|
||||||
|
|
||||||
|
if (args == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
#if defined(HAVE_ECC) || defined(HAVE_CURVE25519) || defined(HAVE_CURVE448)
|
#if defined(HAVE_ECC) || defined(HAVE_CURVE25519) || defined(HAVE_CURVE448)
|
||||||
XFREE(args->exportBuf, ssl->heap, DYNAMIC_TYPE_DER);
|
XFREE(args->exportBuf, ssl->heap, DYNAMIC_TYPE_DER);
|
||||||
args->exportBuf = NULL;
|
args->exportBuf = NULL;
|
||||||
@ -35728,16 +35731,10 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
args->verifySig = NULL;
|
args->verifySig = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (
|
if (args->input != NULL) {
|
||||||
#ifdef WOLFSSL_ASYNC_IO
|
|
||||||
args != NULL &&
|
|
||||||
#endif
|
|
||||||
args->input != NULL) {
|
|
||||||
XFREE(args->input, ssl->heap, DYNAMIC_TYPE_IN_BUFFER);
|
XFREE(args->input, ssl->heap, DYNAMIC_TYPE_IN_BUFFER);
|
||||||
args->input = NULL;
|
args->input = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
(void)args;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* handle generation of server_key_exchange (12) */
|
/* handle generation of server_key_exchange (12) */
|
||||||
|
Reference in New Issue
Block a user