From e432318586fcb3988146bb24e4e5b151339beed8 Mon Sep 17 00:00:00 2001 From: beck <> Date: Tue, 24 Jan 2017 12:08:35 +0000 Subject: Say no to two line error messages on failure --- src/usr.sbin/ocspcheck/ocspcheck.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/usr.sbin/ocspcheck/ocspcheck.c b/src/usr.sbin/ocspcheck/ocspcheck.c index 847477c2d1..8ce1008dbe 100644 --- a/src/usr.sbin/ocspcheck/ocspcheck.c +++ b/src/usr.sbin/ocspcheck/ocspcheck.c @@ -557,10 +557,9 @@ main (int argc, char **argv) * we have been given to check. */ if ((castore = read_cacerts(cafile)) == NULL) - errx(EXIT_FAILURE, "Unable to load %s", cafile); - + exit(EXIT_FAILURE); if ((request = ocsp_request_new_from_cert(certfile, nonce)) == NULL) - errx(EXIT_FAILURE, "Unable to build OCSP request"); + exit(EXIT_FAILURE); if ((host = url2host(request->url, &port, &path)) == NULL) errx(EXIT_FAILURE, "Invalid OCSP url %s from %s", request->url, @@ -605,7 +604,7 @@ main (int argc, char **argv) OPENSSL_add_all_algorithms_noconf(); if (!validate_response(hget->bodypart, hget->bodypartsz, request, castore, host, certfile)) - errx(EXIT_FAILURE, "Can not validate %s", certfile); + exit(EXIT_FAILURE); /* * If we have been given a place to save a staple, -- cgit v1.2.3-55-g6feb