aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-04-10 09:48:55 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-04-10 09:48:55 +0000
commitb3bb9b53fa8c2b34bc5512f3e3c70b9d97102cc8 (patch)
tree33dbae1d94aba608b1d55f430ad86359721b4c87 /src
parent09df682224ef050c24d184de93740c6da75c238d (diff)
downloadgnunet-b3bb9b53fa8c2b34bc5512f3e3c70b9d97102cc8.tar.gz
gnunet-b3bb9b53fa8c2b34bc5512f3e3c70b9d97102cc8.zip
fix
Diffstat (limited to 'src')
-rw-r--r--src/peerinfo/gnunet-service-peerinfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c
index 0b2a360c3..0fe76ac0b 100644
--- a/src/peerinfo/gnunet-service-peerinfo.c
+++ b/src/peerinfo/gnunet-service-peerinfo.c
@@ -274,7 +274,8 @@ notify_all (struct HostEntry *entry)
274 274
275 msg_pub = make_info_message (entry, GNUNET_NO); 275 msg_pub = make_info_message (entry, GNUNET_NO);
276 msg_friend = make_info_message (entry, GNUNET_YES); 276 msg_friend = make_info_message (entry, GNUNET_YES);
277 277 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Notifying all clients about peer `%s'\n",
278 GNUNET_i2s(&entry->identity));
278 for (cur = nc_head; NULL != cur; cur = cur->next) 279 for (cur = nc_head; NULL != cur; cur = cur->next)
279 { 280 {
280 if (GNUNET_NO == cur->include_friend_only) 281 if (GNUNET_NO == cur->include_friend_only)
@@ -905,7 +906,7 @@ add_to_tc (void *cls, const struct GNUNET_HashCode * key, void *value)
905 GNUNET_assert (hs < GNUNET_SERVER_MAX_MESSAGE_SIZE - 906 GNUNET_assert (hs < GNUNET_SERVER_MAX_MESSAGE_SIZE -
906 sizeof (struct InfoMessage)); 907 sizeof (struct InfoMessage));
907 memcpy (&im[1], pos->hello, hs); 908 memcpy (&im[1], pos->hello, hs);
908 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Adding public HELLO with size %u for peer `%s'\n", 909 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending public HELLO with size %u for peer `%4s'\n",
909 hs, GNUNET_h2s (key)); 910 hs, GNUNET_h2s (key));
910 } 911 }
911 else if ((pos->friend_only_hello != NULL) && (GNUNET_YES == tc->friend_only)) 912 else if ((pos->friend_only_hello != NULL) && (GNUNET_YES == tc->friend_only))
@@ -915,7 +916,7 @@ add_to_tc (void *cls, const struct GNUNET_HashCode * key, void *value)
915 GNUNET_assert (hs < GNUNET_SERVER_MAX_MESSAGE_SIZE - 916 GNUNET_assert (hs < GNUNET_SERVER_MAX_MESSAGE_SIZE -
916 sizeof (struct InfoMessage)); 917 sizeof (struct InfoMessage));
917 memcpy (&im[1], pos->friend_only_hello, hs); 918 memcpy (&im[1], pos->friend_only_hello, hs);
918 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Adding public HELLO with size %u for peer `%s'\n", 919 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending friend-only HELLO with size %u for peer `%4s'\n",
919 hs, GNUNET_h2s (key)); 920 hs, GNUNET_h2s (key));
920 } 921 }
921 else 922 else
@@ -1102,7 +1103,6 @@ do_notify_entry (void *cls, const struct GNUNET_HashCode * key, void *value)
1102 struct HostEntry *he = value; 1103 struct HostEntry *he = value;
1103 struct InfoMessage *msg; 1104 struct InfoMessage *msg;
1104 1105
1105
1106 if ((NULL == he->hello) && (GNUNET_NO == nc->include_friend_only)) 1106 if ((NULL == he->hello) && (GNUNET_NO == nc->include_friend_only))
1107 { 1107 {
1108 /* We have no public hello */ 1108 /* We have no public hello */