summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-04-10 15:33:45 +0100
committerMatt Caswell <matt@openssl.org>2015-04-10 16:21:20 +0100
commit4118dfdcc8aa2c2cf496bb33cbc1b9581c33af2f (patch)
treeb4a37169454505876ff2dca979af8e84d873d841
parent30f54ad295d58ff8c6d28c1fd612d23c2c343d19 (diff)
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>
-rw-r--r--ssl/record/rec_layer_s3.c2
1 files changed, 1 insertions, 1 deletions
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 {