aboutsummaryrefslogtreecommitdiff
path: root/src/util/server.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-15 12:13:47 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-15 12:13:47 +0000
commit9720b683ce02228881061cdb3c1473dd084e22c9 (patch)
tree51df56ce4af94e2933797d16963a816642e55621 /src/util/server.c
parentd922f8c58c93c7635330efed052e9ef516d10c5f (diff)
downloadgnunet-9720b683ce02228881061cdb3c1473dd084e22c9.tar.gz
gnunet-9720b683ce02228881061cdb3c1473dd084e22c9.zip
-enable resetting client context to NULL
Diffstat (limited to 'src/util/server.c')
-rw-r--r--src/util/server.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/server.c b/src/util/server.c
index 05463e1cb..11c6021c5 100644
--- a/src/util/server.c
+++ b/src/util/server.c
@@ -373,6 +373,12 @@ GNUNET_SERVER_client_set_user_context_ (struct GNUNET_SERVER_Client *client,
373 void *ptr, 373 void *ptr,
374 size_t size) 374 size_t size)
375{ 375{
376 if (NULL == ptr)
377 {
378 client->user_context_size = 0;
379 client->user_context = ptr;
380 return;
381 }
376 client->user_context_size = size; 382 client->user_context_size = size;
377 client->user_context = ptr; 383 client->user_context = ptr;
378} 384}