aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_local.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/gnunet-service-cadet_local.c')
-rw-r--r--src/cadet/gnunet-service-cadet_local.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cadet/gnunet-service-cadet_local.c b/src/cadet/gnunet-service-cadet_local.c
index caa61db28..5eb17a55f 100644
--- a/src/cadet/gnunet-service-cadet_local.c
+++ b/src/cadet/gnunet-service-cadet_local.c
@@ -315,6 +315,13 @@ handle_new_client (void *cls, struct GNUNET_SERVER_Client *client,
315 315
316 /* Initialize new client structure */ 316 /* Initialize new client structure */
317 c = GNUNET_SERVER_client_get_user_context (client, struct CadetClient); 317 c = GNUNET_SERVER_client_get_user_context (client, struct CadetClient);
318 if (NULL == c)
319 {
320 GNUNET_break (0);
321 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
322 return;
323 }
324
318 LOG (GNUNET_ERROR_TYPE_DEBUG, " client id %u\n", c->id); 325 LOG (GNUNET_ERROR_TYPE_DEBUG, " client id %u\n", c->id);
319 LOG (GNUNET_ERROR_TYPE_DEBUG, " client has %u ports\n", size); 326 LOG (GNUNET_ERROR_TYPE_DEBUG, " client has %u ports\n", size);
320 if (size > 0) 327 if (size > 0)