diff options
author | Matt Caswell <matt@openssl.org> | 2016-02-10 19:41:27 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-02-11 08:53:11 +0000 |
commit | 210ac6824670b4d207f6ea7257d21adb44986ee4 (patch) | |
tree | 195190264d6ed66fbcdc82991e9af9589f3d5eeb /apps/errstr.c | |
parent | 124cbe188753d5a73990b416b4ae3fd6cc90b77a (diff) | |
download | openssl-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.c | 2 |
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 |