diff options
author | Adam Eijdenberg <eijdenberg@google.com> | 2015-07-29 21:38:22 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-07-31 11:13:58 -0400 |
commit | e46bcca25e85a361d3ce8431ec5ccc2382ee5569 (patch) | |
tree | 335198f1c3394c82dbbb4e733e0e2776e6402a89 /apps/ocsp.c | |
parent | 902c6b95a3a3dbf7e5e3dd4b11ec58300ccb8a97 (diff) | |
download | openssl-e46bcca25e85a361d3ce8431ec5ccc2382ee5569.tar.gz |
RT3962: Check accept_count only if not unlimited
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'apps/ocsp.c')
-rw-r--r-- | apps/ocsp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/ocsp.c b/apps/ocsp.c index b6397b8f77..44f5841fff 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -666,7 +666,8 @@ int ocsp_main(int argc, char **argv) /* If running as responder don't verify our own response */ if (cbio) { - if (--accept_count <= 0) { + /* If not unlimited, see if we took all we should. */ + if (accept_count != -1 && --accept_count <= 0) { ret = 0; goto end; } |