From: Adam Eijdenberg Date: Thu, 30 Jul 2015 01:38:22 +0000 (-0400) Subject: RT3962: Check accept_count only if not unlimited X-Git-Tag: OpenSSL_1_1_0-pre1~872 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e46bcca25e85a361d3ce8431ec5ccc2382ee5569;p=oweals%2Fopenssl.git RT3962: Check accept_count only if not unlimited Reviewed-by: Matt Caswell --- 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; }