summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbeck <>2015-07-19 03:05:32 +0000
committerbeck <>2015-07-19 03:05:32 +0000
commit9790227bcbcc547f5a15f248f3b1dd523f99f532 (patch)
tree652492c05945a3209a221d9bdbe9c721274d5005 /src
parent2f199ccbed3e30323138538315273cc845854cb9 (diff)
downloadopenbsd-9790227bcbcc547f5a15f248f3b1dd523f99f532.tar.gz
openbsd-9790227bcbcc547f5a15f248f3b1dd523f99f532.tar.bz2
openbsd-9790227bcbcc547f5a15f248f3b1dd523f99f532.zip
Fix coverity 105339, by correctly checking return from strtoll
ok miod@ bcook@
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/openssl/certhash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/certhash.c b/src/usr.bin/openssl/certhash.c
index d0d1d8c771..84364f1560 100644
--- a/src/usr.bin/openssl/certhash.c
+++ b/src/usr.bin/openssl/certhash.c
@@ -267,7 +267,7 @@ hashinfo_from_linkname(const char *linkname, const char *target)
267 val = strtoll(l, &ep, 16); 267 val = strtoll(l, &ep, 16);
268 if (l[0] == '\0' || *ep != '\0') 268 if (l[0] == '\0' || *ep != '\0')
269 goto err; 269 goto err;
270 if (errno == ERANGE && (val == LONG_MAX || val == LONG_MIN)) 270 if (errno == ERANGE && (val == LLONG_MAX || val == LLONG_MIN))
271 goto err; 271 goto err;
272 if (val < 0 || val > ULONG_MAX) 272 if (val < 0 || val > ULONG_MAX)
273 goto err; 273 goto err;