Remove unneccessary use of accessor function now code is moved into record
authorMatt Caswell <matt@openssl.org>
Mon, 2 Feb 2015 16:14:03 +0000 (16:14 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 26 Mar 2015 15:02:00 +0000 (15:02 +0000)
layer

Reviewed-by: Richard Levitte <levitte@openssl.org>
ssl/record/s3_pkt.c

index 8b360d6..b082c03 100644 (file)
@@ -306,7 +306,7 @@ int ssl3_read_n(SSL *s, int n, int max, int extend)
     }
 
     /* We always act like read_ahead is set for DTLS */
-    if (!RECORD_LAYER_get_read_ahead(&s->rlayer) && !SSL_IS_DTLS(s))
+    if (&s->rlayer.read_ahead && !SSL_IS_DTLS(s))
         /* ignore max parameter */
         max = n;
     else {