diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-04-14 00:02:50 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-04-14 00:02:50 +0000 |
commit | 834c85ef0c84a5329a79976b3e09ddfa06beea9e (patch) | |
tree | cd167e4f68f56f3aa1b780290c0897d56d5c382f /ssl | |
parent | 0c8c8eab580bb05c636cb9671093c53e9027d225 (diff) |
PR: 2228
Submitted By: Robin Seggelmann <seggelmann@fh-muenster.de>
Fix DTLS buffer record MAC failure bug.
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/d1_pkt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c index 57109c3bae..d7951d625d 100644 --- a/ssl/d1_pkt.c +++ b/ssl/d1_pkt.c @@ -156,6 +156,9 @@ dtls1_copy_record(SSL *s, pitem *item) s->packet_length = rdata->packet_length; memcpy(&(s->s3->rbuf), &(rdata->rbuf), sizeof(SSL3_BUFFER)); memcpy(&(s->s3->rrec), &(rdata->rrec), sizeof(SSL3_RECORD)); + + /* Set proper sequence number for mac calculation */ + memcpy(&(s->s3->read_sequence[2]), &(rdata->packet[5]), 6); return(1); } |