aboutsummaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mint/taler-mint-httpd.c')
-rw-r--r--src/mint/taler-mint-httpd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mint/taler-mint-httpd.c b/src/mint/taler-mint-httpd.c
index d74ecf022..51cb14c88 100644
--- a/src/mint/taler-mint-httpd.c
+++ b/src/mint/taler-mint-httpd.c
@@ -474,8 +474,11 @@ main (int argc, char *const *argv)
session = TMH_plugin->get_session (TMH_plugin->cls,
GNUNET_YES);
- TMH_plugin->drop_temporary (TMH_plugin->cls,
- session);
+ if (NULL == session)
+ GNUNET_break (0);
+ else
+ TMH_plugin->drop_temporary (TMH_plugin->cls,
+ session);
}
TALER_MINTDB_plugin_unload (TMH_plugin);