diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-03 12:34:24 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-03 12:34:24 +0100 |
commit | 32ba50a0f0a0e3faeeb788f920fe407e75db7d5d (patch) | |
tree | cd86647b17c3d071425d0845d123799b49991d9d /src | |
parent | 5d67cb9c4fa650ee88ee81bff1466b18f2e2ad14 (diff) |
fix potential NPE
Diffstat (limited to 'src')
-rw-r--r-- | src/exchange/taler-exchange-httpd_keystate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_keystate.c b/src/exchange/taler-exchange-httpd_keystate.c index 9be78e5e4..357616d1a 100644 --- a/src/exchange/taler-exchange-httpd_keystate.c +++ b/src/exchange/taler-exchange-httpd_keystate.c @@ -1924,7 +1924,8 @@ TEH_KS_acquire_ (struct GNUNET_TIME_Absolute now, { os = internal_key_state; internal_key_state = make_fresh_key_state (now); - internal_key_state->refcnt = 1; /* alias from #internal_key_state */ + if (NULL != internal_key_state) + internal_key_state->refcnt = 1; /* alias from #internal_key_state */ if (NULL != os) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |