From: Christian Grothoff Date: Tue, 21 Dec 2010 13:46:45 +0000 (+0000) Subject: handle init NULL X-Git-Tag: initial-import-from-subversion-38251~19489 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e7355b1e5a7045953b4f8e11593f4b37b9c58e1f;p=oweals%2Fgnunet.git handle init NULL --- diff --git a/src/core/core_api.c b/src/core/core_api.c index f73e1f290..c727abc72 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -859,14 +859,14 @@ main_notify_handler (void *cls, trigger_next_request (h, GNUNET_NO); } h->retry_backoff = GNUNET_TIME_UNIT_MILLISECONDS; + GNUNET_CRYPTO_hash (&m->publicKey, + sizeof (struct + GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), + &h->me.hashPubKey); if (NULL != (init = h->init)) { /* mark so we don't call init on reconnect */ h->init = NULL; - GNUNET_CRYPTO_hash (&m->publicKey, - sizeof (struct - GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), - &h->me.hashPubKey); #if DEBUG_CORE GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connected to core service of peer `%s'.\n",