From: Dr. Stephen Henson Date: Wed, 14 Apr 2010 00:03:27 +0000 (+0000) Subject: PR: 2228 X-Git-Tag: OpenSSL-fips-2_0-rc1~1135 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b7463c8818a3582ea54a7e2a86651c4e094df465;p=oweals%2Fopenssl.git PR: 2228 Submitted By: Robin Seggelmann Fix DTLS buffer record MAC failure bug. --- diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c index 20d24b6fd8..93b3408be5 100644 --- a/ssl/d1_pkt.c +++ b/ssl/d1_pkt.c @@ -196,6 +196,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); }