mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
coverity: prune dead code in ssl_sess.c.
This commit is contained in:
@@ -1178,9 +1178,6 @@ int wolfSSL_GetSessionFromCache(WOLFSSL* ssl, WOLFSSL_SESSION* output)
|
|||||||
byte preallocNonceUsed = 0;
|
byte preallocNonceUsed = 0;
|
||||||
#endif /* WOLFSSL_TLS13 */
|
#endif /* WOLFSSL_TLS13 */
|
||||||
byte tmpBufSet = 0;
|
byte tmpBufSet = 0;
|
||||||
#endif
|
|
||||||
#if defined(SESSION_CERTS) && defined(OPENSSL_EXTRA)
|
|
||||||
WOLFSSL_X509* peer = NULL;
|
|
||||||
#endif
|
#endif
|
||||||
byte bogusID[ID_LEN];
|
byte bogusID[ID_LEN];
|
||||||
byte bogusIDSz = 0;
|
byte bogusIDSz = 0;
|
||||||
@@ -1447,13 +1444,6 @@ int wolfSSL_GetSessionFromCache(WOLFSSL* ssl, WOLFSSL_SESSION* output)
|
|||||||
XFREE(preallocNonce, output->heap, DYNAMIC_TYPE_SESSION_TICK);
|
XFREE(preallocNonce, output->heap, DYNAMIC_TYPE_SESSION_TICK);
|
||||||
#endif /* WOLFSSL_TLS13 && WOLFSSL_TICKET_NONCE_MALLOC && FIPS_VERSION_GE(5,3)*/
|
#endif /* WOLFSSL_TLS13 && WOLFSSL_TICKET_NONCE_MALLOC && FIPS_VERSION_GE(5,3)*/
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(SESSION_CERTS) && defined(OPENSSL_EXTRA)
|
|
||||||
if (peer != NULL) {
|
|
||||||
wolfSSL_X509_free(peer);
|
|
||||||
peer = NULL;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return error;
|
return error;
|
||||||
|
Reference in New Issue
Block a user