Commit e46bcca2 authored by Adam Eijdenberg's avatar Adam Eijdenberg Committed by Rich Salz
Browse files

RT3962: Check accept_count only if not unlimited

parent 902c6b95
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
        }