Handle no async jobs in libssl
[openssl.git] / apps / errstr.c
index 99bb9e9068f27186a0e77361986c82c6def951c9..81028ef0bc7a1b63ccfaa5d29e5a4a8a06d59a7f 100644 (file)
@@ -106,12 +106,10 @@ int errstr_main(int argc, char **argv)
             goto end;
         }
     }
-    argc = opt_num_rest();
-    argv = opt_rest();
 
     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