aboutsummaryrefslogtreecommitdiff
path: root/src/lockmanager
diff options
context:
space:
mode:
authorharsha <harsha@140774ce-b5e7-0310-ab8b-a85725594a96>2012-05-10 15:44:24 +0000
committerharsha <harsha@140774ce-b5e7-0310-ab8b-a85725594a96>2012-05-10 15:44:24 +0000
commit1f372b5fe60e0bc773ff98e19132dc0ab2c15dad (patch)
tree8156488b84168d66cf5b2c57d9ad9c680ecc5962 /src/lockmanager
parent0455f425dd78fa67d176b8df38f0b93af410cec2 (diff)
NULL check on disconnect handler
git-svn-id: https://gnunet.org/svn/gnunet@21420 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/lockmanager')
-rw-r--r--src/lockmanager/gnunet-service-lockmanager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lockmanager/gnunet-service-lockmanager.c b/src/lockmanager/gnunet-service-lockmanager.c
index efd505a60e..ddf959ba68 100644
--- a/src/lockmanager/gnunet-service-lockmanager.c
+++ b/src/lockmanager/gnunet-service-lockmanager.c
@@ -734,6 +734,8 @@ client_disconnect_cb (void *cls, struct GNUNET_SERVER_Client *client)
struct ClientList *cl_entry;
struct LockList *ll_entry;
+ if (NULL == client)
+ return;
LOG (GNUNET_ERROR_TYPE_DEBUG,
"A client has been disconnected -- freeing its locks and resources\n");
cl_entry = cl_find_client (client);