Seperate declaration and assignment per c99 standards

pull/331/head
kaleb-himes 2016-03-02 11:31:08 -07:00
parent 1f4ddb20df
commit 01cd43c319
1 changed files with 2 additions and 1 deletions

View File

@ -1763,13 +1763,14 @@ int SetSSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx)
{
byte havePSK = 0;
byte haveAnon = 0;
byte newSSL;
byte haveRSA = 0;
(void) haveAnon; /* Squash unused var warnings */
if(!ssl || !ctx || ssl->suites == NULL)
return BAD_FUNC_ARG;
byte newSSL = ssl->ctx == NULL; /* Assign after null check */
newSSL = ssl->ctx == NULL; /* Assign after null check */
#ifndef NO_PSK
if (ctx->server_hint[0] && ssl->arrays == NULL) {