summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-09-23 13:35:19 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-09-23 13:35:19 +0000
commit8f0968850bb8cc2d227644c3687f1f11b444b7c3 (patch)
tree877e13818c0f11a3ca8553d19cf5ae44b7cf3514 /ssl/ssl_lib.c
parent0b96f60a567477319198c627337c7786cea5f7c3 (diff)
PR: 2602
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de> Reviewed by: steve Fix DTLS bug which prevents manual MTU setting
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r--ssl/ssl_lib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index 46732791fd..8edc980717 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -1054,6 +1054,9 @@ long SSL_ctrl(SSL *s,int cmd,long larg,void *parg)
s->max_cert_list=larg;
return(l);
case SSL_CTRL_SET_MTU:
+ if (larg < dtls1_min_mtu())
+ return 0;
+
if (SSL_version(s) == DTLS1_VERSION ||
SSL_version(s) == DTLS1_BAD_VER)
{