Fix read_ahead issue
[openssl.git] / ssl / record / rec_layer_s3.c
index de8dac2115e3d400ce45fae1bee9a186a0f230b7..0ec1d2ca4c207940a4f93a0b61c366953a39bf44 100644 (file)
@@ -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 {