summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorKen Ballou <ballou@crab.mv.com>2014-06-27 23:17:47 +0100
committerDr. Stephen Henson <steve@openssl.org>2014-06-27 23:18:40 +0100
commit0e2458e1876a48a0f95c765209ffcf4667310721 (patch)
treed089211ca6a7592276cfb900386c39212fb0128e /ssl
parent326de189551041f2b77d72fb3e02d182da6255ca (diff)
Remove redundant check.
PR#3174 (cherry picked from commit fd331c0bb9b557903dd2ce88398570a3327b5ef0)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/s3_pkt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c
index a419470649..dbbee635c9 100644
--- a/ssl/s3_pkt.c
+++ b/ssl/s3_pkt.c
@@ -838,7 +838,7 @@ int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek)
if (!ssl3_setup_buffers(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);