summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-19 17:03:36 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-19 17:03:36 +0100
commit707449aa8f1a84d453a302b245dd4e076d93171a (patch)
tree0fe9c589e837aaa02b60b81414bdb40ffdc69c9d /src/exchange/taler-exchange-httpd.c
parentce5adddaf325b177b1d0c5086fbb288dae271c93 (diff)
downloadexchange-707449aa8f1a84d453a302b245dd4e076d93171a.tar.gz
exchange-707449aa8f1a84d453a302b245dd4e076d93171a.tar.bz2
exchange-707449aa8f1a84d453a302b245dd4e076d93171a.zip
try to fix KS handling
Diffstat (limited to 'src/exchange/taler-exchange-httpd.c')
-rw-r--r--src/exchange/taler-exchange-httpd.c6
1 files changed, 5 insertions, 1 deletions
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 ();