diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-07 23:20:11 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-07 23:20:11 +0000 |
commit | c2df6481757fd97c9580d8a12d2ffa9489c3be91 (patch) | |
tree | 553d9efd6b1978082f2ab9f5b84fa0c4ad39fb78 /src/util/server_nc.c | |
parent | 634c4e3796696548438a9b36b74ea19ba380d18c (diff) | |
download | gnunet-c2df6481757fd97c9580d8a12d2ffa9489c3be91.tar.gz gnunet-c2df6481757fd97c9580d8a12d2ffa9489c3be91.zip |
-towards handling client requests
Diffstat (limited to 'src/util/server_nc.c')
-rw-r--r-- | src/util/server_nc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/server_nc.c b/src/util/server_nc.c index a36fa0c50..08ffd4b0c 100644 --- a/src/util/server_nc.c +++ b/src/util/server_nc.c | |||
@@ -262,6 +262,9 @@ GNUNET_SERVER_notification_context_add (struct GNUNET_SERVER_NotificationContext | |||
262 | { | 262 | { |
263 | struct ClientList *cl; | 263 | struct ClientList *cl; |
264 | 264 | ||
265 | for (cl = nc->clients; NULL != cl; cl = cl->next) | ||
266 | if (cl->client == client) | ||
267 | return; /* already present */ | ||
265 | cl = GNUNET_malloc (sizeof (struct ClientList)); | 268 | cl = GNUNET_malloc (sizeof (struct ClientList)); |
266 | cl->next = nc->clients; | 269 | cl->next = nc->clients; |
267 | cl->nc = nc; | 270 | cl->nc = nc; |