Remove incorrect code inadvertently introduced through commit 59669b6ab.
authorMatt Caswell <matt@openssl.org>
Thu, 4 Dec 2014 09:22:50 +0000 (09:22 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 4 Dec 2014 14:25:09 +0000 (14:25 +0000)
Reviewed-by: Tim Hudson <tjh@openssl.org>
Conflicts:
ssl/d1_lib.c

ssl/d1_lib.c

index 813d9c72a50539206925992ed42058436bbfbc23..feed416826807b5eaf9c8e0459be3078564f88d1 100644 (file)
@@ -279,10 +279,6 @@ long dtls1_ctrl(SSL *s, int cmd, long larg, void *parg)
                /* Just one protocol version is supported so far;
                 * fail closed if the version is not as expected. */
                return s->version == DTLS_MAX_VERSION;
-
-               /* Just one protocol version is supported so far;
-                * fail closed if the version is not as expected. */
-               return s->version == DTLS_MAX_VERSION;
        case DTLS_CTRL_SET_LINK_MTU:
                if (larg < (long)dtls1_link_min_mtu())
                        return 0;