From: Ken Ballou Date: Fri, 27 Jun 2014 22:17:47 +0000 (+0100) Subject: Remove redundant check. X-Git-Tag: OpenSSL_1_0_2-beta2~82 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ec77f276e14f4b835cdd42fa175d74dcda532663;p=oweals%2Fopenssl.git Remove redundant check. PR#3174 (cherry picked from commit fd331c0bb9b557903dd2ce88398570a3327b5ef0) --- diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index 735f67ad73..23fed7077b 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c @@ -1152,7 +1152,7 @@ int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek) if (!ssl3_setup_read_buffer(s)) return(-1); - if ((type && (type != SSL3_RT_APPLICATION_DATA) && (type != SSL3_RT_HANDSHAKE) && type) || + if ((type && (type != SSL3_RT_APPLICATION_DATA) && (type != SSL3_RT_HANDSHAKE)) || (peek && (type != SSL3_RT_APPLICATION_DATA))) { SSLerr(SSL_F_SSL3_READ_BYTES, ERR_R_INTERNAL_ERROR);