diff options
Diffstat (limited to 'src/peerinfo')
-rw-r--r-- | src/peerinfo/gnunet-service-peerinfo.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c index ab0aad9d5..a6587e63c 100644 --- a/src/peerinfo/gnunet-service-peerinfo.c +++ b/src/peerinfo/gnunet-service-peerinfo.c | |||
@@ -853,13 +853,16 @@ update_hello (const struct GNUNET_PeerIdentity *peer, | |||
853 | 853 | ||
854 | if (GNUNET_YES == store_hello) | 854 | if (GNUNET_YES == store_hello) |
855 | { | 855 | { |
856 | memcpy (buffer, host->hello, | 856 | memcpy (buffer, |
857 | host->hello, | ||
857 | GNUNET_HELLO_size (host->hello)); | 858 | GNUNET_HELLO_size (host->hello)); |
858 | pos += GNUNET_HELLO_size (host->hello); | 859 | pos += GNUNET_HELLO_size (host->hello); |
859 | } | 860 | } |
860 | if (GNUNET_YES == store_friend_hello) | 861 | if (GNUNET_YES == store_friend_hello) |
861 | { | 862 | { |
862 | memcpy (&buffer[pos], host->friend_only_hello, GNUNET_HELLO_size (host->friend_only_hello)); | 863 | memcpy (&buffer[pos], |
864 | host->friend_only_hello, | ||
865 | GNUNET_HELLO_size (host->friend_only_hello)); | ||
863 | pos += GNUNET_HELLO_size (host->friend_only_hello); | 866 | pos += GNUNET_HELLO_size (host->friend_only_hello); |
864 | } | 867 | } |
865 | GNUNET_assert (pos == size); | 868 | GNUNET_assert (pos == size); |