Remove incorrect code inadvertently introduced through commit 59669b6ab.

Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
Matt Caswell 2014-12-04 09:22:50 +00:00
parent 0b3c13092c
commit 9a6e994240

View file

@ -317,10 +317,6 @@ long dtls1_ctrl(SSL *s, int cmd, long larg, void *parg)
return s->version == DTLS1_VERSION;
}
return 0; /* Unexpected state; fail closed. */
/* 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;