Improve error message
authorFdaSilvaYY <fdasilvayy@gmail.com>
Wed, 3 Aug 2016 22:23:39 +0000 (00:23 +0200)
committerMatt Caswell <matt@openssl.org>
Wed, 17 Aug 2016 16:09:19 +0000 (17:09 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
apps/speed.c

index ce01a6f3c0d56db3a01b4ee830d2109fd4d16584..0c996f070c4895490436f14a15b8330d26cd8205 100644 (file)
@@ -1431,6 +1431,12 @@ int speed_main(int argc, char **argv)
             break;
         case OPT_MB:
             multiblock = 1;
+#ifdef OPENSSL_NO_MULTIBLOCK
+            BIO_printf(bio_err,
+                       "%s: -mb specified but multi-block support is disabled\n",
+                       prog);
+            goto end;
+#endif
             break;
         }
     }