summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-11-06 09:54:39 +0000
committerMatt Caswell <matt@openssl.org>2015-11-06 15:32:44 +0000
commit8d16c58fa4d4ef1d6394c2a6ad5ca93c095808e6 (patch)
treea49878fbf579064f1b9b822a52de54124408ce86
parente6575156204dfd50a63f6afbe98f6714d0799764 (diff)
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: Viktor Dukhovni <viktor@openssl.org>
-rw-r--r--ssl/statem/statem_lib.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ssl/statem/statem_lib.c b/ssl/statem/statem_lib.c
index b0df7d2636..2f13e92111 100644
--- a/ssl/statem/statem_lib.c
+++ b/ssl/statem/statem_lib.c
@@ -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++;