aboutsummaryrefslogtreecommitdiff
path: root/src/core/core_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core_api.c')
-rw-r--r--src/core/core_api.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c
index 3624a6e7f..24013b7cf 100644
--- a/src/core/core_api.c
+++ b/src/core/core_api.c
@@ -870,9 +870,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
870 trigger_next_request (h, GNUNET_NO); 870 trigger_next_request (h, GNUNET_NO);
871 } 871 }
872 h->retry_backoff = GNUNET_TIME_UNIT_MILLISECONDS; 872 h->retry_backoff = GNUNET_TIME_UNIT_MILLISECONDS;
873 GNUNET_CRYPTO_hash (&m->publicKey, 873 h->me = m->my_identity;
874 sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded),
875 &h->me.hashPubKey);
876 if (NULL != (init = h->init)) 874 if (NULL != (init = h->init))
877 { 875 {
878 /* mark so we don't call init on reconnect */ 876 /* mark so we don't call init on reconnect */
@@ -882,7 +880,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
882 "Connected to core service of peer `%s'.\n", 880 "Connected to core service of peer `%s'.\n",
883 GNUNET_i2s (&h->me)); 881 GNUNET_i2s (&h->me));
884#endif 882#endif
885 init (h->cls, h, &h->me, &m->publicKey); 883 init (h->cls, h, &h->me);
886 } 884 }
887 else 885 else
888 { 886 {