aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/exchange/taler-exchange-httpd_keys.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c
index bff057a50..1029d2008 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -549,6 +549,8 @@ TEH_check_invariants ()
{
struct TEH_KeyStateHandle *ksh;
+ if (0 == TEH_check_invariants)
+ return;
ksh = TEH_keys_get_state ();
if (NULL == ksh)
return;