diff options
author | 2020-05-09 15:39:18 +0000 | |
---|---|---|
committer | 2020-05-09 15:39:18 +0000 | |
commit | 10aeffa37e4158467e950eedbc818b6e047c37a7 (patch) | |
tree | 43814b03d72d03f167dc241911271b988f1469f5 /lib/libssl/tls13_record_layer.c | |
parent | Add a middlebox_compat flag and condition session ID randomisation on it. (diff) | |
download | wireguard-openbsd-10aeffa37e4158467e950eedbc818b6e047c37a7.tar.xz wireguard-openbsd-10aeffa37e4158467e950eedbc818b6e047c37a7.zip |
Correct return value check to handle TLS13_IO_EOF case.
Diffstat (limited to 'lib/libssl/tls13_record_layer.c')
-rw-r--r-- | lib/libssl/tls13_record_layer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/tls13_record_layer.c b/lib/libssl/tls13_record_layer.c index 16a22a841b1..6b9be4028cc 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.34 2020/05/07 18:56:09 tb Exp $ */ +/* $OpenBSD: tls13_record_layer.c,v 1.35 2020/05/09 15:39:18 jsing Exp $ */ /* * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> * @@ -343,7 +343,7 @@ tls13_record_layer_send_phh(struct tls13_record_layer *rl) /* Push out pending post-handshake handshake messages. */ if ((ret = tls13_record_layer_write_chunk(rl, SSL3_RT_HANDSHAKE, - CBS_data(&rl->phh_cbs), CBS_len(&rl->phh_cbs))) < 0) + CBS_data(&rl->phh_cbs), CBS_len(&rl->phh_cbs))) <= 0) return ret; if (!CBS_skip(&rl->phh_cbs, ret)) return TLS13_IO_FAILURE; |