diff --git a/src/ssl.c b/src/ssl.c index 16b1e49e4..2c339860c 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -5757,7 +5757,8 @@ int wolfSSL_Init(void) if (ret == WOLFSSL_SUCCESS) { initRefCount++; - } else { + } + else { initRefCount = 1; /* Force cleanup */ }