aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}