summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2015-07-19 03:05:33 +0000
committerBob Beck <beck@cvs.openbsd.org>2015-07-19 03:05:33 +0000
commitd7cbfc28a85307035a4fac02bb8b71c0746ffb5b (patch)
tree8cf26fd53b12f0f53a1d80db3690a456f5436e80 /usr.bin
parentca54960f0d32763084cb9700485af46343660728 (diff)
Fix coverity 105339, by correctly checking return from strtoll
ok miod@ bcook@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/openssl/certhash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/openssl/certhash.c b/usr.bin/openssl/certhash.c
index d0d1d8c771d..84364f1560e 100644
--- a/usr.bin/openssl/certhash.c
+++ b/usr.bin/openssl/certhash.c
@@ -267,7 +267,7 @@ hashinfo_from_linkname(const char *linkname, const char *target)
val = strtoll(l, &ep, 16);
if (l[0] == '\0' || *ep != '\0')
goto err;
- if (errno == ERANGE && (val == LONG_MAX || val == LONG_MIN))
+ if (errno == ERANGE && (val == LLONG_MAX || val == LLONG_MIN))
goto err;
if (val < 0 || val > ULONG_MAX)
goto err;