summaryrefslogtreecommitdiff
path: root/apps/errstr.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-02-10 19:41:27 +0000
committerMatt Caswell <matt@openssl.org>2016-02-11 08:53:11 +0000
commit210ac6824670b4d207f6ea7257d21adb44986ee4 (patch)
tree195190264d6ed66fbcdc82991e9af9589f3d5eeb /apps/errstr.c
parent124cbe188753d5a73990b416b4ae3fd6cc90b77a (diff)
downloadopenssl-new-210ac6824670b4d207f6ea7257d21adb44986ee4.tar.gz
Fix errstr error code parsing
Error codes are printed in hex, and previous OpenSSL versions expected the error codes to be provided to errstr in hex. In 1.1.0, for some reason, it was expecting them to be decimal. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/errstr.c')
-rw-r--r--apps/errstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/errstr.c b/apps/errstr.c
index 99bb9e9068..141338adac 100644
--- a/apps/errstr.c
+++ b/apps/errstr.c
@@ -111,7 +111,7 @@ int errstr_main(int argc, char **argv)
ret = 0;
for (argv = opt_rest(); *argv; argv++) {
- if (!opt_ulong(*argv, &l))
+ if (sscanf(*argv, "%lx", &l) == 0)
ret++;
else {
/* We're not really an SSL application so this won't auto-init, but