summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-26 20:35:36 +0200
committerChristian Grothoff <christian@grothoff.org>2019-10-26 20:35:36 +0200
commitc1ce2a03ed24769af970985b07c30fc2c434526c (patch)
tree3bf1ae09fae03d7e6b3cc0b9d6cd2109f6a82ef3 /src
parent5da22c60de9e79081a10f6ea70266a8032aa52c1 (diff)
downloadexchange-c1ce2a03ed24769af970985b07c30fc2c434526c.tar.gz
exchange-c1ce2a03ed24769af970985b07c30fc2c434526c.tar.bz2
exchange-c1ce2a03ed24769af970985b07c30fc2c434526c.zip
fix NPE
Diffstat (limited to 'src')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index a36664fdc..eaca40936 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);
}