diff --git a/test/exptest.c b/test/exptest.c index 84d76be403..bc023ef67e 100644 --- a/test/exptest.c +++ b/test/exptest.c @@ -297,6 +297,9 @@ int main(int argc, char *argv[]) BN_free(m); BN_CTX_free(ctx); + if (test_exp_mod_zero() != 0) + goto err; + #ifndef OPENSSL_NO_CRYPTO_MDEBUG if (CRYPTO_mem_leaks(out) <= 0) goto err; @@ -304,9 +307,6 @@ int main(int argc, char *argv[]) BIO_free(out); printf("\n"); - if (test_exp_mod_zero() != 0) - goto err; - printf("done\n"); EXIT(0);