From 2f3b7d356748c3e21d5839e46f5b23d25b02d9dc Mon Sep 17 00:00:00 2001 From: Takashi Kojo Date: Sun, 30 Aug 2015 13:38:52 +0900 Subject: [PATCH] mdk portability, fixed declaration after executing statements --- src/internal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/internal.c b/src/internal.c index dedd2c4d8..37e0c224f 100644 --- a/src/internal.c +++ b/src/internal.c @@ -1565,15 +1565,15 @@ void FreeX509(WOLFSSL_X509* x509) wolfSSL_Set_SSL_CTX */ int SetSSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx) { - if(!ssl || !ctx) - return BAD_FUNC_ARG; - byte havePSK = 0; byte haveAnon = 0; byte haveRSA = 0; byte newSSL = ssl->ctx == NULL; - (void) haveAnon; /* Squash unused var warnings */ + (void) haveAnon; /* Squash unused var warnings */ + + if(!ssl || !ctx) + return BAD_FUNC_ARG; #ifndef NO_RSA haveRSA = 1; #endif