From 0b33bed9696ffda5f56eb7ebb5765204df6df978 Mon Sep 17 00:00:00 2001 From: Ken Ballou Date: Fri, 27 Jun 2014 23:17:47 +0100 Subject: [PATCH] Remove redundant check. PR#3174 --- ssl/s3_pkt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index bba8f3df57..243992542b 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c @@ -1247,7 +1247,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); -- 2.34.1