aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-12-21 13:46:45 +0000
committerChristian Grothoff <christian@grothoff.org>2010-12-21 13:46:45 +0000
commite7355b1e5a7045953b4f8e11593f4b37b9c58e1f (patch)
treefb6988f63da07e809b6b62f871b3fdbc7031bf04 /src
parente4f2bacf2beaffa89ae289cc3d7282a72428f620 (diff)
downloadgnunet-e7355b1e5a7045953b4f8e11593f4b37b9c58e1f.tar.gz
gnunet-e7355b1e5a7045953b4f8e11593f4b37b9c58e1f.zip
handle init NULL
Diffstat (limited to 'src')
-rw-r--r--src/core/core_api.c8
1 files changed, 4 insertions, 4 deletions
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,
859 trigger_next_request (h, GNUNET_NO); 859 trigger_next_request (h, GNUNET_NO);
860 } 860 }
861 h->retry_backoff = GNUNET_TIME_UNIT_MILLISECONDS; 861 h->retry_backoff = GNUNET_TIME_UNIT_MILLISECONDS;
862 GNUNET_CRYPTO_hash (&m->publicKey,
863 sizeof (struct
864 GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded),
865 &h->me.hashPubKey);
862 if (NULL != (init = h->init)) 866 if (NULL != (init = h->init))
863 { 867 {
864 /* mark so we don't call init on reconnect */ 868 /* mark so we don't call init on reconnect */
865 h->init = NULL; 869 h->init = NULL;
866 GNUNET_CRYPTO_hash (&m->publicKey,
867 sizeof (struct
868 GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded),
869 &h->me.hashPubKey);
870#if DEBUG_CORE 870#if DEBUG_CORE
871 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 871 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
872 "Connected to core service of peer `%s'.\n", 872 "Connected to core service of peer `%s'.\n",