Commit 4118dfdc authored by Matt Caswell's avatar Matt Caswell
Browse files

Fix read_ahead issue



Fix a "&" that should have been "!" when processing read_ahead.

RT#3793

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent 30f54ad2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {