diff options
author | harsha <harsha@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-05-10 15:44:24 +0000 |
---|---|---|
committer | harsha <harsha@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-05-10 15:44:24 +0000 |
commit | 1f372b5fe60e0bc773ff98e19132dc0ab2c15dad (patch) | |
tree | 8156488b84168d66cf5b2c57d9ad9c680ecc5962 /src/lockmanager | |
parent | 0455f425dd78fa67d176b8df38f0b93af410cec2 (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.c | 2 |
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); |