Skip to content

Commit

Permalink
deps: tentative floating patch for openssl-1.1.1-pre6
Browse files Browse the repository at this point in the history
  • Loading branch information
shigeki committed May 5, 2018
1 parent a6a1e2e commit e4b5267
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deps/openssl/openssl/ssl/statem/statem_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,6 @@ WORK_STATE tls_finish_handshake(SSL *s, WORK_STATE wst, int clearbufs, int stop)
/* skipped if we just sent a HelloRequest */
s->renegotiate = 0;
s->new_session = 0;
s->statem.cleanuphand = 0;

ssl3_cleanup_key_block(s);

Expand Down Expand Up @@ -1090,8 +1089,11 @@ WORK_STATE tls_finish_handshake(SSL *s, WORK_STATE wst, int clearbufs, int stop)
/* The callback may expect us to not be in init at handshake done */
ossl_statem_set_in_init(s, 0);

if (cb != NULL)
if (s->statem.cleanuphand) {
s->statem.cleanuphand = 0;
if (cb != NULL)
cb(s, SSL_CB_HANDSHAKE_DONE, 1);
}

if (!stop) {
/* If we've got more work to do we go back into init */
Expand Down

0 comments on commit e4b5267

Please sign in to comment.