dsatest: use the correct BIO to print the test error

Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
This commit is contained in:
Marcus Meissner 2015-12-03 15:19:53 +01:00 committed by Rich Salz
parent df7421ccb4
commit 70c9f1c878

View File

@ -248,7 +248,7 @@ static int dsa_cb(int p, int n, BN_GENCB *arg)
(void)BIO_flush(BN_GENCB_get_arg(arg));
if (!ok && (p == 0) && (num > 1)) {
BIO_printf((BIO *)arg, "error in dsatest\n");
BIO_printf(BN_GENCB_get_arg(arg), "error in dsatest\n");
return 0;
}
return 1;