diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2020-02-21 16:06:27 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2020-02-21 16:06:27 +0000 |
commit | 7c43afb9e0026de993877aae15c6e2d52e97ed96 (patch) | |
tree | 118eaf3883a5f909481348ccfef4d2a33ebe9bd7 /lib/libssl/d1_pkt.c | |
parent | b87cdf9af074f51dc870a2093e36ba50de94fa38 (diff) |
Remove prefix_len, since it is always zero.
ok inoguchi@ tb@
Diffstat (limited to 'lib/libssl/d1_pkt.c')
-rw-r--r-- | lib/libssl/d1_pkt.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libssl/d1_pkt.c b/lib/libssl/d1_pkt.c index b406b62536e..aefb2c9dfb9 100644 --- a/lib/libssl/d1_pkt.c +++ b/lib/libssl/d1_pkt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: d1_pkt.c,v 1.66 2018/12/03 17:16:12 tb Exp $ */ +/* $OpenBSD: d1_pkt.c,v 1.67 2020/02/21 16:06:26 jsing Exp $ */ /* * DTLS implementation written by Nagendra Modadugu * (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) { unsigned char *p, *pseq; int i, mac_size, clear = 0; - int prefix_len = 0; SSL3_RECORD *wr; SSL3_BUFFER *wb; SSL_SESSION *sess; @@ -1222,7 +1221,7 @@ do_dtls1_write(SSL *s, int type, const unsigned char *buf, unsigned int len) /* DTLS implements explicit IV, so no need for empty fragments. */ - p = wb->buf + prefix_len; + p = wb->buf; /* write the header */ @@ -1311,7 +1310,7 @@ do_dtls1_write(SSL *s, int type, const unsigned char *buf, unsigned int len) tls1_record_sequence_increment(S3I(s)->write_sequence); /* now let's set up wb */ - wb->left = prefix_len + wr->length; + wb->left = wr->length; wb->offset = 0; /* memorize arguments so that ssl3_write_pending can detect bad write retries later */ |