diff options
author | 2020-01-26 06:31:51 +0000 | |
---|---|---|
committer | 2020-01-26 06:31:51 +0000 | |
commit | 0992a619c268282c6c2189568dbc49a0acef5f54 (patch) | |
tree | 1b7f3bba44cb35205142fe17b6e54ec7a5dacdda /lib/libssl/tls13_record_layer.c | |
parent | Add simplepanel(4), a driver for simple display panels. This one (diff) | |
download | wireguard-openbsd-0992a619c268282c6c2189568dbc49a0acef5f54.tar.xz wireguard-openbsd-0992a619c268282c6c2189568dbc49a0acef5f54.zip |
Fix basement bug where record layer would not correctly deal with
traffic retries when not yet encrypting.
ok jsing@
Diffstat (limited to 'lib/libssl/tls13_record_layer.c')
-rw-r--r-- | lib/libssl/tls13_record_layer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libssl/tls13_record_layer.c b/lib/libssl/tls13_record_layer.c index 7d882924bc7..b9c85aa07d1 100644 --- a/lib/libssl/tls13_record_layer.c +++ b/lib/libssl/tls13_record_layer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_record_layer.c,v 1.26 2020/01/25 09:20:56 jsing Exp $ */ +/* $OpenBSD: tls13_record_layer.c,v 1.27 2020/01/26 06:31:51 beck Exp $ */ /* * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> * @@ -623,6 +623,9 @@ tls13_record_layer_seal_record_plaintext(struct tls13_record_layer *rl, if (!tls13_record_set_data(rl->wrec, data, data_len)) goto err; + rl->wrec_content_len = content_len; + rl->wrec_content_type = content_type; + return 1; err: |