diff options
author | jsing <> | 2021-07-19 08:42:24 +0000 |
---|---|---|
committer | jsing <> | 2021-07-19 08:42:24 +0000 |
commit | 32b700a8cdd2b60b732903e811f88f307b78b939 (patch) | |
tree | fcdf7be991a935818048c885037a88e82337072d /src/lib/libssl/d1_pkt.c | |
parent | eda68be808b1e827c62a96424ee03bf4dd64ba1a (diff) | |
download | openbsd-32b700a8cdd2b60b732903e811f88f307b78b939.tar.gz openbsd-32b700a8cdd2b60b732903e811f88f307b78b939.tar.bz2 openbsd-32b700a8cdd2b60b732903e811f88f307b78b939.zip |
Mop up dtls1_get_ccs_header() and struct ccs_header_st.
All this code does is read one byte from memory with an unknown length,
potentially being a one byte overread... and then nothing is actually done
with the value.
ok tb@
Diffstat (limited to 'src/lib/libssl/d1_pkt.c')
-rw-r--r-- | src/lib/libssl/d1_pkt.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/libssl/d1_pkt.c b/src/lib/libssl/d1_pkt.c index 36dd255722..2610206797 100644 --- a/src/lib/libssl/d1_pkt.c +++ b/src/lib/libssl/d1_pkt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: d1_pkt.c,v 1.100 2021/07/19 08:39:28 jsing Exp $ */ | 1 | /* $OpenBSD: d1_pkt.c,v 1.101 2021/07/19 08:42:24 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * DTLS implementation written by Nagendra Modadugu | 3 | * DTLS implementation written by Nagendra Modadugu |
4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. |
@@ -835,10 +835,6 @@ dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek) | |||
835 | } | 835 | } |
836 | 836 | ||
837 | if (rr->type == SSL3_RT_CHANGE_CIPHER_SPEC) { | 837 | if (rr->type == SSL3_RT_CHANGE_CIPHER_SPEC) { |
838 | struct ccs_header_st ccs_hdr; | ||
839 | |||
840 | dtls1_get_ccs_header(rr->data, &ccs_hdr); | ||
841 | |||
842 | /* 'Change Cipher Spec' is just a single byte, so we know | 838 | /* 'Change Cipher Spec' is just a single byte, so we know |
843 | * exactly what the record payload has to look like */ | 839 | * exactly what the record payload has to look like */ |
844 | /* XDTLS: check that epoch is consistent */ | 840 | /* XDTLS: check that epoch is consistent */ |