summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_lib.c
diff options
context:
space:
mode:
authorbeck <>2020-01-24 05:11:34 +0000
committerbeck <>2020-01-24 05:11:34 +0000
commit529b7be67199c06193eacb07df3515311e805c8a (patch)
tree58c737be5d09e9f169ae08450f2f95890594505c /src/lib/libssl/tls13_lib.c
parent4a70a3e1c32e602f63bd66315116f161ade7b0d8 (diff)
downloadopenbsd-529b7be67199c06193eacb07df3515311e805c8a.tar.gz
openbsd-529b7be67199c06193eacb07df3515311e805c8a.tar.bz2
openbsd-529b7be67199c06193eacb07df3515311e805c8a.zip
Permit 0 length writes, because openssl s_client is special
ok jsing@
Diffstat (limited to 'src/lib/libssl/tls13_lib.c')
-rw-r--r--src/lib/libssl/tls13_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/tls13_lib.c b/src/lib/libssl/tls13_lib.c
index 091450024c..f17f2ff0de 100644
--- a/src/lib/libssl/tls13_lib.c
+++ b/src/lib/libssl/tls13_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_lib.c,v 1.28 2020/01/24 04:39:44 jsing Exp $ */ 1/* $OpenBSD: tls13_lib.c,v 1.29 2020/01/24 05:11:34 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 * Copyright (c) 2019 Bob Beck <beck@openbsd.org> 4 * Copyright (c) 2019 Bob Beck <beck@openbsd.org>
@@ -493,7 +493,7 @@ tls13_legacy_write_bytes(SSL *ssl, int type, const void *vbuf, int len)
493 SSLerror(ssl, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); 493 SSLerror(ssl, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
494 return -1; 494 return -1;
495 } 495 }
496 if (len <= 0) { 496 if (len < 0) {
497 SSLerror(ssl, SSL_R_BAD_LENGTH); 497 SSLerror(ssl, SSL_R_BAD_LENGTH);
498 return -1; 498 return -1;
499 } 499 }