summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/d1_lib.c')
-rw-r--r--src/lib/libssl/d1_lib.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libssl/d1_lib.c b/src/lib/libssl/d1_lib.c
index 3db5629e23..d4280a277c 100644
--- a/src/lib/libssl/d1_lib.c
+++ b/src/lib/libssl/d1_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_lib.c,v 1.58 2021/07/21 08:42:14 jsing Exp $ */ 1/* $OpenBSD: d1_lib.c,v 1.59 2021/08/30 19:12:25 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.
@@ -191,10 +191,8 @@ dtls1_clear(SSL *s)
191 memset(s->d1, 0, sizeof(*s->d1)); 191 memset(s->d1, 0, sizeof(*s->d1));
192 s->d1->internal = internal; 192 s->d1->internal = internal;
193 193
194 D1I(s)->r_epoch = 194 D1I(s)->unprocessed_rcds.epoch =
195 tls12_record_layer_initial_epoch(s->internal->rl); 195 tls12_record_layer_read_epoch(s->internal->rl) + 1;
196
197 D1I(s)->unprocessed_rcds.epoch = D1I(s)->r_epoch + 1;
198 196
199 if (s->server) { 197 if (s->server) {
200 D1I(s)->cookie_len = sizeof(D1I(s)->cookie); 198 D1I(s)->cookie_len = sizeof(D1I(s)->cookie);