diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-11-13 11:45:59 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-11-13 11:45:59 +0000 |
commit | e6e8d9d41540c9413d7e11908b7daf33efb9a6ff (patch) | |
tree | 1587e381800a6a55322dbdcec4b93014a2528661 /src | |
parent | 9baabed9a7a45e367458754e7ce6c19b4245f22b (diff) | |
download | gnunet-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.c | 2 |
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 | ||