mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
Fix for scan-build warning with ret not being read in DoServerHello.
This commit is contained in:
@@ -15428,20 +15428,20 @@ void PickHashSigAlgo(WOLFSSL* ssl, const byte* hashSigAlgo, word32 hashSigAlgoSz
|
|||||||
if (ssl->options.resuming) {
|
if (ssl->options.resuming) {
|
||||||
if (DSH_CheckSessionId(ssl)) {
|
if (DSH_CheckSessionId(ssl)) {
|
||||||
if (SetCipherSpecs(ssl) == 0) {
|
if (SetCipherSpecs(ssl) == 0) {
|
||||||
ret = -1;
|
|
||||||
|
|
||||||
XMEMCPY(ssl->arrays->masterSecret,
|
XMEMCPY(ssl->arrays->masterSecret,
|
||||||
ssl->session.masterSecret, SECRET_LEN);
|
ssl->session.masterSecret, SECRET_LEN);
|
||||||
#ifdef NO_OLD_TLS
|
#ifdef NO_OLD_TLS
|
||||||
|
ret = DeriveTlsKeys(ssl);
|
||||||
|
#else
|
||||||
|
ret = -1; /* default value */
|
||||||
|
#ifndef NO_TLS
|
||||||
|
if (ssl->options.tls)
|
||||||
ret = DeriveTlsKeys(ssl);
|
ret = DeriveTlsKeys(ssl);
|
||||||
#else
|
#endif
|
||||||
#ifndef NO_TLS
|
if (!ssl->options.tls)
|
||||||
if (ssl->options.tls)
|
ret = DeriveKeys(ssl);
|
||||||
ret = DeriveTlsKeys(ssl);
|
#endif /* NO_OLD_TLS */
|
||||||
#endif
|
|
||||||
if (!ssl->options.tls)
|
|
||||||
ret = DeriveKeys(ssl);
|
|
||||||
#endif
|
|
||||||
ssl->options.serverState = SERVER_HELLODONE_COMPLETE;
|
ssl->options.serverState = SERVER_HELLODONE_COMPLETE;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user