diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-20 12:32:53 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-20 12:32:53 +0000 |
commit | 4cf0c0c575b1f2153feaf96c9122eb55a118a19a (patch) | |
tree | b45f4c7fb41e845981fb217755b07e376d87c644 | |
parent | 70759e0496229f2041ddbff76ad89f978434a107 (diff) | |
download | gnunet-4cf0c0c575b1f2153feaf96c9122eb55a118a19a.tar.gz gnunet-4cf0c0c575b1f2153feaf96c9122eb55a118a19a.zip |
-check RV
-rw-r--r-- | src/cadet/gnunet-service-cadet_local.c | 7 |
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) |