Commit 8d16c58f authored by Matt Caswell's avatar Matt Caswell
Browse files

Remove some redundant assignments



We were setting |s->renegotiate| and |s->new_session| to 0 twice in
tls_finish_handshake. This is redundant so now we just do it once!

Reviewed-by: default avatarViktor Dukhovni <viktor@openssl.org>
parent e6575156
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -405,9 +405,6 @@ WORK_STATE tls_finish_handshake(SSL *s, WORK_STATE wst)
        s->new_session = 0;

        if (s->server) {
            s->renegotiate = 0;
            s->new_session = 0;

            ssl_update_cache(s, SSL_SESS_CACHE_SERVER);

            s->ctx->stats.sess_accept_good++;