From c1ce2a03ed24769af970985b07c30fc2c434526c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 26 Oct 2019 20:35:36 +0200 Subject: fix NPE --- src/exchangedb/plugin_exchangedb_postgres.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/exchangedb/plugin_exchangedb_postgres.c') diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index a36664fd..eaca4093 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -542,7 +542,7 @@ db_conn_destroy (void *cls) db_conn = session->conn; session->conn = NULL; if (NULL != db_conn) - GNUNET_PQ_disconnect (session->conn); + GNUNET_PQ_disconnect (db_conn); GNUNET_free (session); } -- cgit v1.2.3