Remove some logically dead code
authorMatt Caswell <matt@openssl.org>
Mon, 23 Apr 2018 08:01:49 +0000 (09:01 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 24 Apr 2018 08:16:20 +0000 (09:16 +0100)
This dead code should have been removed as part of #5874 but got missed.

Found by Coverity.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/6049)

ssl/statem/statem_lib.c

index 6d0778db3f79c2bfcaa1576cc0ffe7860ddcc7cc..269ba859970482a30a8b269ef1638efe9b1215f1 100644 (file)
@@ -1073,9 +1073,6 @@ WORK_STATE tls_finish_handshake(SSL *s, WORK_STATE wst, int clearbufs, int stop)
                               &discard, s->session_ctx->lock);
         }
 
-        if (cb != NULL)
-            cb(s, SSL_CB_HANDSHAKE_DONE, 1);
-
         if (SSL_IS_DTLS(s)) {
             /* done with handshaking */
             s->d1->handshake_read_seq = 0;