From 5b4e092775f462b148fa792db672d0d9cf729614 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 13 Aug 2013 22:44:32 +0000 Subject: [PATCH] -dead code elimination, and docu --- src/identity/identity_api.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c index f4ef81f68..de1ce819e 100644 --- a/src/identity/identity_api.c +++ b/src/identity/identity_api.c @@ -398,13 +398,11 @@ message_handler (void *cls, reschedule_connect (h); return; } + /* Note: we know which service this should be for, so we're not + really using 'str' henceforth */ GNUNET_CRYPTO_ecc_key_get_public (&sdm->private_key, &pub); GNUNET_CRYPTO_hash (&pub, sizeof (pub), &id); - if (0 == name_len) - str = NULL; - else - str = (const char *) &sdm[1]; ego = GNUNET_CONTAINER_multihashmap_get (h->egos, &id); if (NULL == ego) @@ -417,6 +415,7 @@ message_handler (void *cls, GNUNET_CONTAINER_DLL_remove (h->op_head, h->op_tail, op); + GNUNET_free (ego->name); if (NULL != op->cb) op->cb (op->cls, ego, -- 2.25.1