diff options
author | beck <> | 2017-01-24 10:46:37 +0000 |
---|---|---|
committer | beck <> | 2017-01-24 10:46:37 +0000 |
commit | c2788a84ceb906a3081df72c9a41e036f14cd263 (patch) | |
tree | 9f059220e6dec2f3ee509b30aa3df90d443f8d62 | |
parent | 4b9b98852d232859c4b30b8f96f9bd9696417b0d (diff) | |
download | openbsd-c2788a84ceb906a3081df72c9a41e036f14cd263.tar.gz openbsd-c2788a84ceb906a3081df72c9a41e036f14cd263.tar.bz2 openbsd-c2788a84ceb906a3081df72c9a41e036f14cd263.zip |
use warn, I have errno here. noticed by theo
-rw-r--r-- | src/usr.sbin/ocspcheck/ocspcheck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr.sbin/ocspcheck/ocspcheck.c b/src/usr.sbin/ocspcheck/ocspcheck.c index 59b85b8cef..0d6ebee028 100644 --- a/src/usr.sbin/ocspcheck/ocspcheck.c +++ b/src/usr.sbin/ocspcheck/ocspcheck.c | |||
@@ -227,7 +227,7 @@ read_fullchain(const char *file, int *count) | |||
227 | *count = 0; | 227 | *count = 0; |
228 | 228 | ||
229 | if ((bio = BIO_new_file(file, "r")) == NULL) { | 229 | if ((bio = BIO_new_file(file, "r")) == NULL) { |
230 | warnx("Unable to read a certificate from %s", file); | 230 | warn("Unable to read a certificate from %s", file); |
231 | return NULL; | 231 | return NULL; |
232 | } | 232 | } |
233 | if ((xis = PEM_X509_INFO_read_bio(bio, NULL, NULL, NULL)) == NULL) { | 233 | if ((xis = PEM_X509_INFO_read_bio(bio, NULL, NULL, NULL)) == NULL) { |