diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2015-07-19 03:05:33 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2015-07-19 03:05:33 +0000 |
commit | d7cbfc28a85307035a4fac02bb8b71c0746ffb5b (patch) | |
tree | 8cf26fd53b12f0f53a1d80db3690a456f5436e80 /usr.bin | |
parent | ca54960f0d32763084cb9700485af46343660728 (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.c | 2 |
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; |