From: Christian Grothoff Date: Fri, 13 Nov 2009 11:45:59 +0000 (+0000) Subject: increment RC to ensure that process_client_buffer does not destroy by chance X-Git-Tag: initial-import-from-subversion-38251~23098 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e6e8d9d41540c9413d7e11908b7daf33efb9a6ff;p=oweals%2Fgnunet.git increment RC to ensure that process_client_buffer does not destroy by chance --- 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); }