summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2020-02-21 16:06:26 +0000
committerjsing <>2020-02-21 16:06:26 +0000
commit36aff3b8e061cda65ce463816541616b9339d768 (patch)
tree7d2aeb3eaca1baa32c3b080084b4473e03c77646 /src
parent6786372e1ef02967fdab4846b1fef041603e9667 (diff)
downloadopenbsd-36aff3b8e061cda65ce463816541616b9339d768.tar.gz
openbsd-36aff3b8e061cda65ce463816541616b9339d768.tar.bz2
openbsd-36aff3b8e061cda65ce463816541616b9339d768.zip
Remove prefix_len, since it is always zero.
ok inoguchi@ tb@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/d1_pkt.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/libssl/d1_pkt.c b/src/lib/libssl/d1_pkt.c
index b406b62536..aefb2c9dfb 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.66 2018/12/03 17:16:12 tb Exp $ */ 1/* $OpenBSD: d1_pkt.c,v 1.67 2020/02/21 16:06:26 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.
@@ -1180,7 +1180,6 @@ do_dtls1_write(SSL *s, int type, const unsigned char *buf, unsigned int len)
1180{ 1180{
1181 unsigned char *p, *pseq; 1181 unsigned char *p, *pseq;
1182 int i, mac_size, clear = 0; 1182 int i, mac_size, clear = 0;
1183 int prefix_len = 0;
1184 SSL3_RECORD *wr; 1183 SSL3_RECORD *wr;
1185 SSL3_BUFFER *wb; 1184 SSL3_BUFFER *wb;
1186 SSL_SESSION *sess; 1185 SSL_SESSION *sess;
@@ -1222,7 +1221,7 @@ do_dtls1_write(SSL *s, int type, const unsigned char *buf, unsigned int len)
1222 1221
1223 /* DTLS implements explicit IV, so no need for empty fragments. */ 1222 /* DTLS implements explicit IV, so no need for empty fragments. */
1224 1223
1225 p = wb->buf + prefix_len; 1224 p = wb->buf;
1226 1225
1227 /* write the header */ 1226 /* write the header */
1228 1227
@@ -1311,7 +1310,7 @@ do_dtls1_write(SSL *s, int type, const unsigned char *buf, unsigned int len)
1311 tls1_record_sequence_increment(S3I(s)->write_sequence); 1310 tls1_record_sequence_increment(S3I(s)->write_sequence);
1312 1311
1313 /* now let's set up wb */ 1312 /* now let's set up wb */
1314 wb->left = prefix_len + wr->length; 1313 wb->left = wr->length;
1315 wb->offset = 0; 1314 wb->offset = 0;
1316 1315
1317 /* memorize arguments so that ssl3_write_pending can detect bad write retries later */ 1316 /* memorize arguments so that ssl3_write_pending can detect bad write retries later */