提交 4118dfdc 编写于 作者: M Matt Caswell

Fix read_ahead issue

Fix a "&" that should have been "!" when processing read_ahead.

RT#3793
Reviewed-by: NRich Salz <rsalz@openssl.org>
Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 30f54ad2
......@@ -380,7 +380,7 @@ int ssl3_read_n(SSL *s, int n, int max, int extend)
}
/* We always act like read_ahead is set for DTLS */
if (&s->rlayer.read_ahead && !SSL_IS_DTLS(s))
if (!s->rlayer.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.
先完成此消息的编辑!
想要评论请 注册