From 707449aa8f1a84d453a302b245dd4e076d93171a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 19 Jan 2020 17:03:36 +0100 Subject: try to fix KS handling --- src/exchange/taler-exchange-httpd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/exchange/taler-exchange-httpd.c') diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index a00a792c5..1c9290467 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -882,6 +882,9 @@ main (int argc, "fcntl"); } + /* initialize #internal_key_state with an RC of 1 */ + TEH_KS_init (); + /* consider unix path */ if ( (-1 == fh) && (NULL != serve_unixpath) ) @@ -891,7 +894,6 @@ main (int argc, if (-1 == fh) return 1; } - mhd = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_PIPE_FOR_SHUTDOWN | MHD_USE_DEBUG | MHD_USE_DUAL_STACK @@ -1004,6 +1006,8 @@ main (int argc, MHD_stop_daemon (mhd); break; } + + /* release #internal_key_state */ TEH_KS_free (); TALER_EXCHANGEDB_plugin_unload (TEH_plugin); TEH_VALIDATION_done (); -- cgit v1.2.3