Return success when the responder is active.
[openssl.git] / apps / ocsp.c
index f5e37a6358f44aca1fc4c955a7effe47d1565831..65e20e36d4495ed4e7aa3c338f574128775ef611 100644 (file)
@@ -749,7 +749,7 @@ int MAIN(int argc, char **argv)
 
        if (reqout)
                {
-               if (!strcmp(respout, "-"))
+               if (!strcmp(reqout, "-"))
                        derbio = BIO_new_fp(stdout, BIO_NOCLOSE);
                else
                        derbio = BIO_new_file(reqout, "wb");
@@ -866,6 +866,12 @@ int MAIN(int argc, char **argv)
                        resp = NULL;
                        goto redo_accept;
                        }
+               ret = 0;
+               goto end;
+               }
+       else if (ridx_filename)
+               {
+               ret = 0;
                goto end;
                }