RT3962: Check accept_count only if not unlimited
Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
parent
902c6b95a3
commit
e46bcca25e
@ -666,7 +666,8 @@ int ocsp_main(int argc, char **argv)
|
|||||||
|
|
||||||
/* If running as responder don't verify our own response */
|
/* If running as responder don't verify our own response */
|
||||||
if (cbio) {
|
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;
|
ret = 0;
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user