mirror of
https://github.com/openssl/openssl.git
synced 2024-12-17 22:13:45 +08:00
Fix read_ahead issue
Fix a "&" that should have been "!" when processing read_ahead. RT#3793 Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
30f54ad295
commit
4118dfdcc8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user