aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo
diff options
context:
space:
mode:
Diffstat (limited to 'src/peerinfo')
-rw-r--r--src/peerinfo/gnunet-service-peerinfo.c1
-rwxr-xr-xsrc/peerinfo/perf_peerinfo_api.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c
index 8b113f9ce..7a2a02c2a 100644
--- a/src/peerinfo/gnunet-service-peerinfo.c
+++ b/src/peerinfo/gnunet-service-peerinfo.c
@@ -510,7 +510,6 @@ bind_address (const struct GNUNET_PeerIdentity *peer,
510 GNUNET_assert (NULL != host); 510 GNUNET_assert (NULL != host);
511 if (NULL == host->hello) 511 if (NULL == host->hello)
512 { 512 {
513 GNUNET_break (0);
514 host->hello = GNUNET_malloc (GNUNET_HELLO_size (hello)); 513 host->hello = GNUNET_malloc (GNUNET_HELLO_size (hello));
515 memcpy (host->hello, hello, GNUNET_HELLO_size (hello)); 514 memcpy (host->hello, hello, GNUNET_HELLO_size (hello));
516 } 515 }
diff --git a/src/peerinfo/perf_peerinfo_api.c b/src/peerinfo/perf_peerinfo_api.c
index 41533bd3f..d55ccce2b 100755
--- a/src/peerinfo/perf_peerinfo_api.c
+++ b/src/peerinfo/perf_peerinfo_api.c
@@ -82,7 +82,7 @@ address_generator (void *cls, size_t max, void *buf)
82static void 82static void
83add_peer (size_t i) 83add_peer (size_t i)
84{ 84{
85 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pkey; 85 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pkey;
86 struct GNUNET_HELLO_Message *h2; 86 struct GNUNET_HELLO_Message *h2;
87 87
88 memset (&pkey, i, sizeof (pkey)); 88 memset (&pkey, i, sizeof (pkey));
@@ -120,7 +120,7 @@ run (void *cls,
120 { 120 {
121 add_peer (i); 121 add_peer (i);
122 ic[i] = 122 ic[i] =
123 GNUNET_PEERINFO_iterate (h, NULL, 123 GNUNET_PEERINFO_iterate (h, GNUNET_YES, NULL,
124 GNUNET_TIME_relative_multiply 124 GNUNET_TIME_relative_multiply
125 (GNUNET_TIME_UNIT_SECONDS, 30), &process, cls); 125 (GNUNET_TIME_UNIT_SECONDS, 30), &process, cls);
126 } 126 }