aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-11-13 11:45:59 +0000
committerChristian Grothoff <christian@grothoff.org>2009-11-13 11:45:59 +0000
commite6e8d9d41540c9413d7e11908b7daf33efb9a6ff (patch)
tree1587e381800a6a55322dbdcec4b93014a2528661 /src
parent9baabed9a7a45e367458754e7ce6c19b4245f22b (diff)
downloadgnunet-e6e8d9d41540c9413d7e11908b7daf33efb9a6ff.tar.gz
gnunet-e6e8d9d41540c9413d7e11908b7daf33efb9a6ff.zip
increment RC to ensure that process_client_buffer does not destroy by chance
Diffstat (limited to 'src')
-rw-r--r--src/util/server.c2
1 files changed, 2 insertions, 0 deletions
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)
777{ 777{
778 struct GNUNET_SERVER_Client *client = cls; 778 struct GNUNET_SERVER_Client *client = cls;
779 779
780 GNUNET_SERVER_client_keep (client);
780 process_client_buffer (client); 781 process_client_buffer (client);
781 if (0 == client->suspended) 782 if (0 == client->suspended)
782 client->receive (client->client_closure, 783 client->receive (client->client_closure,
783 GNUNET_SERVER_MAX_MESSAGE_SIZE, 784 GNUNET_SERVER_MAX_MESSAGE_SIZE,
784 client->server->idle_timeout, &process_incoming, client); 785 client->server->idle_timeout, &process_incoming, client);
786 GNUNET_SERVER_client_drop (client);
785} 787}
786 788
787 789