summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2017-01-24 12:08:36 +0000
committerBob Beck <beck@cvs.openbsd.org>2017-01-24 12:08:36 +0000
commit2cc4774632b785b4fed0e06b88fd6a723e1e5ce9 (patch)
tree25890b7e4671a05f42f06432a96e5cff621c3550 /usr.sbin
parentd77840a5e95c604ceb14fb96d9723a1e36b46f96 (diff)
Say no to two line error messages on failure
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ocspcheck/ocspcheck.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/ocspcheck/ocspcheck.c b/usr.sbin/ocspcheck/ocspcheck.c
index 847477c2d1d..8ce1008dbef 100644
--- a/usr.sbin/ocspcheck/ocspcheck.c
+++ b/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,