From b7725f9968d8fb623c7c4d37c55714942643bfcb Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 27 Aug 2008 10:10:47 +0000 Subject: Allow getting out of the FIPS error state by running a self-test. --- src/global.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/global.c') diff --git a/src/global.c b/src/global.c index 894146e9..1d5314b3 100644 --- a/src/global.c +++ b/src/global.c @@ -469,7 +469,7 @@ _gcry_vcontrol (enum gcry_ctl_cmds cmd, va_list arg_ptr) /* Already initialized. If we are already operational we run a selftest. If not we use the is_operational call to force us into operational state if possible. */ - if (_gcry_fips_test_operational ()) + if (_gcry_fips_test_error_or_operational ()) _gcry_fips_run_selftests (); if (_gcry_fips_is_operational ()) err = GPG_ERR_GENERAL; /* Used as TRUE value */ -- cgit v1.2.1