Fix for builds without DTLS support.

Submitted by: Brian Carlstrom
This commit is contained in:
Bodo Möller 2012-01-05 10:21:49 +00:00
parent 244788464a
commit dd016b0570

View file

@ -1000,8 +1000,10 @@ long SSL_ctrl(SSL *s,int cmd,long larg,void *parg)
s->max_cert_list=larg;
return(l);
case SSL_CTRL_SET_MTU:
#ifndef OPENSSL_NO_DTLS1
if (larg < (long)dtls1_min_mtu())
return 0;
#endif
if (SSL_version(s) == DTLS1_VERSION ||
SSL_version(s) == DTLS1_BAD_VER)