diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libssl/d1_pkt.c | 7 |
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 */ |