Remove redundant check.
PR#3174 (Imported from upstream's ec77f276e14f4b835cdd42fa175d74dcda532663) Change-Id: I7e33d67c201bdd088520d060cc8e4e9713223e69
This commit is contained in:
parent
2811da2eca
commit
46cfb0e4ee
@ -955,7 +955,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)))
|
||||
{
|
||||
OPENSSL_PUT_ERROR(SSL, ssl3_read_bytes, ERR_R_INTERNAL_ERROR);
|
||||
|
Loading…
Reference in New Issue
Block a user