NULL check on disconnect handler
authorSree Harsha Totakura <totakura@in.tum.de>
Thu, 10 May 2012 15:44:24 +0000 (15:44 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Thu, 10 May 2012 15:44:24 +0000 (15:44 +0000)
src/lockmanager/gnunet-service-lockmanager.c

index efd505a60e889626c998caaab530fad937da7432..ddf959ba68420c891643cfff5ee42c2aa798a032 100644 (file)
@@ -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);