diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-09-23 13:34:48 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-09-23 13:34:48 +0000 |
commit | 1d7392f219c298b574d491aaa9431df029fc55a6 (patch) | |
tree | 08c13561e5cdd57ff482a087a380f2ef4a52352c /ssl/ssl_lib.c | |
parent | 07dda896cb654b277b57edf2587eeac5ea22652f (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index b75c260725..0b5f234e5c 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1075,6 +1075,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) { |