From: Dr. Stephen Henson Date: Wed, 14 Apr 2010 00:02:50 +0000 (+0000) Subject: PR: 2228 X-Git-Tag: OpenSSL_0_9_8o~24 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=834c85ef0c84a5329a79976b3e09ddfa06beea9e;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 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); }