summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2020-05-10 14:03:14 +0000
committerjsing <>2020-05-10 14:03:14 +0000
commit591e19f9efe5d236b5f96c0eedefde55e6503ab3 (patch)
tree9a374a1dc1f0e1a3857ddfd70b1c8c83dc9ec115 /src
parent2a4fe9ed015f84f0020469e2ffae41ce8272e589 (diff)
downloadopenbsd-591e19f9efe5d236b5f96c0eedefde55e6503ab3.tar.gz
openbsd-591e19f9efe5d236b5f96c0eedefde55e6503ab3.tar.bz2
openbsd-591e19f9efe5d236b5f96c0eedefde55e6503ab3.zip
Correct tlsext_ocsp_resplen check.
This variable is currently overloaded - a value of -1 means that it is "unset" and any other value is a length. ok tb@
Diffstat (limited to 'src')
-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 3825707d5c..ad78d5b597 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.38 2020/05/09 15:30:21 jsing Exp $ */ 1/* $OpenBSD: tls13_lib.c,v 1.39 2020/05/10 14:03:14 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 * Copyright (c) 2019 Bob Beck <beck@openbsd.org> 4 * Copyright (c) 2019 Bob Beck <beck@openbsd.org>
@@ -170,7 +170,7 @@ tls13_legacy_ocsp_status_recv_cb(void *arg)
170 int ret; 170 int ret;
171 171
172 if (s->ctx->internal->tlsext_status_cb == NULL || 172 if (s->ctx->internal->tlsext_status_cb == NULL ||
173 s->internal->tlsext_ocsp_resplen == 0) 173 s->internal->tlsext_ocsp_resplen == -1)
174 return 1; 174 return 1;
175 175
176 ret = s->ctx->internal->tlsext_status_cb(s, 176 ret = s->ctx->internal->tlsext_status_cb(s,