summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libssl/tls13_record_layer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libssl/tls13_record_layer.c b/src/lib/libssl/tls13_record_layer.c
index 07efcbc702..d4bc50ab4e 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.6 2019/02/23 15:02:34 jsing Exp $ */ 1/* $OpenBSD: tls13_record_layer.c,v 1.7 2019/02/25 16:52:34 jsing 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 *
@@ -760,7 +760,9 @@ static ssize_t
760tls13_record_layer_write(struct tls13_record_layer *rl, uint8_t content_type, 760tls13_record_layer_write(struct tls13_record_layer *rl, uint8_t content_type,
761 const uint8_t *buf, size_t n) 761 const uint8_t *buf, size_t n)
762{ 762{
763 /* XXX - handle fragmenting... */ 763 if (n > TLS13_RECORD_MAX_PLAINTEXT_LEN)
764 n = TLS13_RECORD_MAX_PLAINTEXT_LEN;
765
764 return tls13_record_layer_write_record(rl, content_type, buf, n); 766 return tls13_record_layer_write_record(rl, content_type, buf, n);
765} 767}
766 768