From: Matt Caswell Date: Fri, 10 Apr 2015 14:33:45 +0000 (+0100) Subject: Fix read_ahead issue X-Git-Tag: OpenSSL_1_1_0-pre1~1333 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=4118dfdcc8aa2c2cf496bb33cbc1b9581c33af2f;ds=sidebyside Fix read_ahead issue Fix a "&" that should have been "!" when processing read_ahead. RT#3793 Reviewed-by: Rich Salz Reviewed-by: Richard Levitte --- diff --git a/ssl/record/rec_layer_s3.c b/ssl/record/rec_layer_s3.c index de8dac2115..0ec1d2ca4c 100644 --- a/ssl/record/rec_layer_s3.c +++ b/ssl/record/rec_layer_s3.c @@ -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 {