diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2021-08-31 13:14:44 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2021-08-31 13:14:44 +0000 |
commit | 54aaff1f403bcde0330feac207d64927e79caa99 (patch) | |
tree | 130046e3a2be02ec1b04242d05b3335902f4e36d /lib | |
parent | f5cb00e00e1f99be36dc76f5f11b84ce72811b15 (diff) |
Remove a nonsensical s->version == TLS1_VERSION from DTLS code.
ok inoguchi@ tb@ (as part of a larger diff)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libssl/d1_pkt.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/libssl/d1_pkt.c b/lib/libssl/d1_pkt.c index f99b8ff3712..0b66bf7cc81 100644 --- a/lib/libssl/d1_pkt.c +++ b/lib/libssl/d1_pkt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: d1_pkt.c,v 1.107 2021/08/30 19:25:43 jsing Exp $ */ +/* $OpenBSD: d1_pkt.c,v 1.108 2021/08/31 13:14:43 jsing Exp $ */ /* * DTLS implementation written by Nagendra Modadugu * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. @@ -898,11 +898,6 @@ dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek) switch (rr->type) { default: - /* TLS just ignores unknown message types */ - if (s->version == TLS1_VERSION) { - rr->length = 0; - goto start; - } al = SSL_AD_UNEXPECTED_MESSAGE; SSLerror(s, SSL_R_UNEXPECTED_RECORD); goto fatal_err; |