提交 8dd4ad0f 编写于 作者: M Matt Caswell

Make DTLS always act as if read_ahead is set. The actual value of read_ahead

is ignored for DTLS.

RT#3657
Reviewed-by: NAndy Polyakov <appro@openssl.org>
上级 2a4af947
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册