X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fd1_pkt.c;h=ed246a007807c9c59e96664e28f9154254150377;hp=611fc8db5769fb749ac7a289be7f7de2150f6738;hb=01e438f28844ad4f3fd7e8d772031524593d6441;hpb=5effa35610f673bc3837b8972f7122b233ecbc54 diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c index 611fc8db57..ed246a0078 100644 --- a/ssl/d1_pkt.c +++ b/ssl/d1_pkt.c @@ -758,9 +758,8 @@ int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek) if (!ssl3_setup_buffers(s)) return(-1); - /* XXX: check what the second '&& type' is about */ if ((type && (type != SSL3_RT_APPLICATION_DATA) && - (type != SSL3_RT_HANDSHAKE) && type) || + (type != SSL3_RT_HANDSHAKE)) || (peek && (type != SSL3_RT_APPLICATION_DATA))) { SSLerr(SSL_F_DTLS1_READ_BYTES, ERR_R_INTERNAL_ERROR);