diff options
author | beck <> | 2020-01-26 06:31:51 +0000 |
---|---|---|
committer | beck <> | 2020-01-26 06:31:51 +0000 |
commit | 7da7bbce29b0ab166d3085a673b34a695e3382c5 (patch) | |
tree | 52d36f2453620b7935a3b041aa7fc5438e6cc2b1 /src | |
parent | 5b2b58a4eec035a63a1914d4fdbe93163cf57a88 (diff) | |
download | openbsd-7da7bbce29b0ab166d3085a673b34a695e3382c5.tar.gz openbsd-7da7bbce29b0ab166d3085a673b34a695e3382c5.tar.bz2 openbsd-7da7bbce29b0ab166d3085a673b34a695e3382c5.zip |
Fix basement bug where record layer would not correctly deal with
traffic retries when not yet encrypting.
ok jsing@
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libssl/tls13_record_layer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_record_layer.c b/src/lib/libssl/tls13_record_layer.c index 7d882924bc..b9c85aa07d 100644 --- a/src/lib/libssl/tls13_record_layer.c +++ b/src/lib/libssl/tls13_record_layer.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls13_record_layer.c,v 1.26 2020/01/25 09:20:56 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_record_layer.c,v 1.27 2020/01/26 06:31:51 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -623,6 +623,9 @@ tls13_record_layer_seal_record_plaintext(struct tls13_record_layer *rl, | |||
623 | if (!tls13_record_set_data(rl->wrec, data, data_len)) | 623 | if (!tls13_record_set_data(rl->wrec, data, data_len)) |
624 | goto err; | 624 | goto err; |
625 | 625 | ||
626 | rl->wrec_content_len = content_len; | ||
627 | rl->wrec_content_type = content_type; | ||
628 | |||
626 | return 1; | 629 | return 1; |
627 | 630 | ||
628 | err: | 631 | err: |