projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d922f8c
)
-enable resetting client context to NULL
author
Christian Grothoff
<christian@grothoff.org>
Thu, 15 Aug 2013 12:13:47 +0000
(12:13 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Thu, 15 Aug 2013 12:13:47 +0000
(12:13 +0000)
src/util/server.c
patch
|
blob
|
history
diff --git
a/src/util/server.c
b/src/util/server.c
index 05463e1cb33391190e8ea82491db9798ad26b23a..11c6021c562dfb66a81824df99449e859662877e 100644
(file)
--- 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,
void *ptr,
size_t size)
{
void *ptr,
size_t size)
{
+ if (NULL == ptr)
+ {
+ client->user_context_size = 0;
+ client->user_context = ptr;
+ return;
+ }
client->user_context_size = size;
client->user_context = ptr;
}
client->user_context_size = size;
client->user_context = ptr;
}