summaryrefslogtreecommitdiff
path: root/sbin/iked
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-07-03 03:24:05 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-07-03 03:24:05 +0000
commit75fca2aa3a35362ecff27f0c3041d3f511b51275 (patch)
treed0c647e96313c8d94edf3f50304b78ae1cf249c1 /sbin/iked
parentaef6c060ee15355c0490999de3c4679d7bb97e84 (diff)
snprintf/vsnprintf return < 0 on error, rather than -1.
Diffstat (limited to 'sbin/iked')
-rw-r--r--sbin/iked/ca.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/iked/ca.c b/sbin/iked/ca.c
index 98b6b8a40f5..07dc503c8fa 100644
--- a/sbin/iked/ca.c
+++ b/sbin/iked/ca.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ca.c,v 1.47 2019/02/27 06:33:56 sthen Exp $ */
+/* $OpenBSD: ca.c,v 1.48 2019/07/03 03:24:01 deraadt Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -589,7 +589,7 @@ ca_reload(struct iked *env)
continue;
if (snprintf(file, sizeof(file), "%s%s",
- IKED_CA_DIR, entry->d_name) == -1)
+ IKED_CA_DIR, entry->d_name) < 0)
continue;
if (!X509_load_cert_file(store->ca_calookup, file,
@@ -615,7 +615,7 @@ ca_reload(struct iked *env)
continue;
if (snprintf(file, sizeof(file), "%s%s",
- IKED_CRL_DIR, entry->d_name) == -1)
+ IKED_CRL_DIR, entry->d_name) < 0)
continue;
if (!X509_load_crl_file(store->ca_calookup, file,
@@ -688,7 +688,7 @@ ca_reload(struct iked *env)
continue;
if (snprintf(file, sizeof(file), "%s%s",
- IKED_CERT_DIR, entry->d_name) == -1)
+ IKED_CERT_DIR, entry->d_name) < 0)
continue;
if (!X509_load_cert_file(store->ca_certlookup, file,