aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/gnunet-service-peerinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peerinfo/gnunet-service-peerinfo.c')
-rw-r--r--src/peerinfo/gnunet-service-peerinfo.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c
index 75e99d1f8..61fdd0f24 100644
--- a/src/peerinfo/gnunet-service-peerinfo.c
+++ b/src/peerinfo/gnunet-service-peerinfo.c
@@ -584,9 +584,8 @@ hosts_directory_scan_callback (void *cls,
584 584
585 if ( (NULL != r.hello) && 585 if ( (NULL != r.hello) &&
586 (NULL != r.friend_only_hello) && 586 (NULL != r.friend_only_hello) &&
587 (0 != memcmp (&id_friend, 587 (0 != GNUNET_memcmp (&id_friend,
588 &id_public, 588 &id_public)) )
589 sizeof (id_friend))) )
590 { 589 {
591 /* HELLOs are not for the same peer */ 590 /* HELLOs are not for the same peer */
592 GNUNET_break (0); 591 GNUNET_break (0);
@@ -599,7 +598,7 @@ hosts_directory_scan_callback (void *cls,
599 strlen (filename), 598 strlen (filename),
600 &identity.public_key)) 599 &identity.public_key))
601 { 600 {
602 if (0 != memcmp (&id, &identity, sizeof (id_friend))) 601 if (0 != GNUNET_memcmp (&id, &identity))
603 { 602 {
604 /* HELLOs are not for the same peer */ 603 /* HELLOs are not for the same peer */
605 GNUNET_break (0); 604 GNUNET_break (0);