aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/exchange/taler-exchange-httpd_keystate.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_keystate.c b/src/exchange/taler-exchange-httpd_keystate.c
index ec565dac2..1390f95a3 100644
--- a/src/exchange/taler-exchange-httpd_keystate.c
+++ b/src/exchange/taler-exchange-httpd_keystate.c
@@ -1685,6 +1685,12 @@ TEH_KS_acquire_ (const char *location)
{
internal_key_state = make_fresh_key_state ();
/* bump RC by 1 if we released internal_key_state above */
+ if (NULL == internal_key_state)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Failed to initialize key state\n");
+ return NULL;
+ }
internal_key_state->refcnt += rcd;
}
key_state = internal_key_state;