From e6e8d9d41540c9413d7e11908b7daf33efb9a6ff Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 13 Nov 2009 11:45:59 +0000 Subject: [PATCH] increment RC to ensure that process_client_buffer does not destroy by chance --- src/util/server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/server.c b/src/util/server.c index de81a08ea..e79a824ba 100644 --- a/src/util/server.c +++ b/src/util/server.c @@ -777,11 +777,13 @@ restart_processing (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { struct GNUNET_SERVER_Client *client = cls; + GNUNET_SERVER_client_keep (client); process_client_buffer (client); if (0 == client->suspended) client->receive (client->client_closure, GNUNET_SERVER_MAX_MESSAGE_SIZE, client->server->idle_timeout, &process_incoming, client); + GNUNET_SERVER_client_drop (client); } -- 2.25.1