diff options
author | Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com> | 2016-05-05 17:27:30 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-05-05 17:27:30 -0400 |
commit | 50b4a9ba1382de7a1990fb4716585754b9c7f50d (patch) | |
tree | cdfdf18d0836f57a67d3ddbe65cc9dc7d617bd6d /ssl/statem/statem_dtls.c | |
parent | fc7f190c732729c1d0eb9dcdb7ff05ed6b06056f (diff) | |
download | openssl-new-50b4a9ba1382de7a1990fb4716585754b9c7f50d.tar.gz |
GH356: Change assert to normal error
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/statem/statem_dtls.c')
-rw-r--r-- | ssl/statem/statem_dtls.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ssl/statem/statem_dtls.c b/ssl/statem/statem_dtls.c index a3090ef490..88969b1d5d 100644 --- a/ssl/statem/statem_dtls.c +++ b/ssl/statem/statem_dtls.c @@ -224,8 +224,9 @@ int dtls1_do_write(SSL *s, int type) if (!dtls1_query_mtu(s)) return -1; - OPENSSL_assert(s->d1->mtu >= dtls1_min_mtu(s)); /* should have something - * reasonable now */ + if (s->d1->mtu < dtls1_min_mtu(s)) + /* should have something reasonable now */ + return -1; if (s->init_off == 0 && type == SSL3_RT_HANDSHAKE) OPENSSL_assert(s->init_num == |