Fix SSL handshake functions and SSL_clear() such that SSL_clear()
[openssl.git] / ssl / s23_srvr.c
index 8c41e1f..fe8bd33 100644 (file)
@@ -165,8 +165,8 @@ int ssl23_accept(SSL *s)
        else if (s->ctx->info_callback != NULL)
                cb=s->ctx->info_callback;
        
-       if (!SSL_in_init(s) || SSL_in_before(s)) SSL_clear(s); 
        s->in_handshake++;
+       if (!SSL_in_init(s) || SSL_in_before(s)) SSL_clear(s); 
 
        for (;;)
                {