diff options
author | Matt Caswell <matt@openssl.org> | 2015-01-26 16:47:36 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-01-27 14:28:41 +0000 |
commit | 8dd4ad0ff5d1d07ec4b6dd5d5104131269a472aa (patch) | |
tree | 2d0a5459ddf83672dfc36e679554459402f971f1 /ssl | |
parent | 2a4af9478d0be41ea8c782c3c7adda00f7e20fbb (diff) | |
download | openssl-8dd4ad0ff5d1d07ec4b6dd5d5104131269a472aa.zip openssl-8dd4ad0ff5d1d07ec4b6dd5d5104131269a472aa.tar.gz openssl-8dd4ad0ff5d1d07ec4b6dd5d5104131269a472aa.tar.bz2 |
Make DTLS always act as if read_ahead is set. The actual value of read_ahead
is ignored for DTLS.
RT#3657
Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/s3_pkt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index 85af629..07adf0f 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c @@ -231,7 +231,8 @@ int ssl3_read_n(SSL *s, int n, int max, int extend) return -1; } - if (!s->read_ahead) + /* We always act like read_ahead is set for DTLS */ + if (!s->read_ahead && !SSL_IS_DTLS(s)) /* ignore max parameter */ max = n; else { |