diff options
author | beck <> | 2017-01-24 10:46:37 +0000 |
---|---|---|
committer | beck <> | 2017-01-24 10:46:37 +0000 |
commit | 14eb0e523551f38fe3b6876bbdeb746b5e74f4cc (patch) | |
tree | 9f059220e6dec2f3ee509b30aa3df90d443f8d62 /src | |
parent | f5db1b892e56a62e47a445aac13bb563d788a618 (diff) | |
download | openbsd-14eb0e523551f38fe3b6876bbdeb746b5e74f4cc.tar.gz openbsd-14eb0e523551f38fe3b6876bbdeb746b5e74f4cc.tar.bz2 openbsd-14eb0e523551f38fe3b6876bbdeb746b5e74f4cc.zip |
use warn, I have errno here. noticed by theo
Diffstat (limited to 'src')
-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) { |