From 4cf0c0c575b1f2153feaf96c9122eb55a118a19a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 20 Dec 2014 12:32:53 +0000 Subject: -check RV --- src/cadet/gnunet-service-cadet_local.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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, /* Initialize new client structure */ c = GNUNET_SERVER_client_get_user_context (client, struct CadetClient); + if (NULL == c) + { + GNUNET_break (0); + GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); + return; + } + LOG (GNUNET_ERROR_TYPE_DEBUG, " client id %u\n", c->id); LOG (GNUNET_ERROR_TYPE_DEBUG, " client has %u ports\n", size); if (size > 0) -- cgit v1.2.3