summaryrefslogtreecommitdiffstats
path: root/lib/libssl/tls13_legacy.c
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2020-10-07 10:14:45 +0000
committertb <tb@openbsd.org>2020-10-07 10:14:45 +0000
commit307e9e7c3295b66b7c8fff9717d5c1736615dcd2 (patch)
tree5efbfb46072a1f392590c922afff0dbc847e2e43 /lib/libssl/tls13_legacy.c
parentHook up tlslegacy regress. (diff)
downloadwireguard-openbsd-307e9e7c3295b66b7c8fff9717d5c1736615dcd2.tar.xz
wireguard-openbsd-307e9e7c3295b66b7c8fff9717d5c1736615dcd2.zip
fix line wrapping
Diffstat (limited to 'lib/libssl/tls13_legacy.c')
-rw-r--r--lib/libssl/tls13_legacy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libssl/tls13_legacy.c b/lib/libssl/tls13_legacy.c
index a26afeeeb94..e9e17293e12 100644
--- a/lib/libssl/tls13_legacy.c
+++ b/lib/libssl/tls13_legacy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls13_legacy.c,v 1.14 2020/10/07 07:46:18 jsing Exp $ */
+/* $OpenBSD: tls13_legacy.c,v 1.15 2020/10/07 10:14:45 tb Exp $ */
/*
* Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
*
@@ -321,8 +321,7 @@ tls13_use_legacy_stack(struct tls13_ctx *ctx)
goto err;
if (!CBB_add_u16_length_prefixed(&cbb, &fragment))
goto err;
- if (!CBB_add_bytes(&fragment, CBS_data(&cbs),
- CBS_len(&cbs)))
+ if (!CBB_add_bytes(&fragment, CBS_data(&cbs), CBS_len(&cbs)))
goto err;
if (!CBB_finish(&cbb, NULL, NULL))
goto err;