diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-04-12 15:20:47 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-04-12 15:20:47 +0000 |
commit | de58a619e8330b14a9a712d59acb1fbe4124eea4 (patch) | |
tree | 1366e464eba862bb29b171eea7f49dd23e45da92 /src/hostlist/hostlist-client.c | |
parent | 87c71e33ab62b62b23a8a5b4ba40cac413cb9029 (diff) | |
download | gnunet-de58a619e8330b14a9a712d59acb1fbe4124eea4.tar.gz gnunet-de58a619e8330b14a9a712d59acb1fbe4124eea4.zip |
Diffstat (limited to 'src/hostlist/hostlist-client.c')
-rw-r--r-- | src/hostlist/hostlist-client.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index ee33c83fc..9af75fec2 100644 --- a/src/hostlist/hostlist-client.c +++ b/src/hostlist/hostlist-client.c | |||
@@ -727,13 +727,15 @@ advertisement_handler (void *cls, | |||
727 | struct GNUNET_TIME_Relative latency, | 727 | struct GNUNET_TIME_Relative latency, |
728 | uint32_t distance) | 728 | uint32_t distance) |
729 | { | 729 | { |
730 | int size = ntohs (message->size); | ||
731 | int type = ntohs (message->type); | ||
732 | if ( type != GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT) | ||
733 | return GNUNET_NO; | ||
730 | #if DEBUG_HOSTLIST_CLIENT | 734 | #if DEBUG_HOSTLIST_CLIENT |
731 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 735 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
732 | "Hostlist client recieved advertisement message\n"); | 736 | "Hostlist client recieved advertisement message, size %u, type %u\n",size,type); |
733 | #endif | 737 | #endif |
734 | 738 | ||
735 | /* put code to use message here */ | ||
736 | |||
737 | return GNUNET_YES; | 739 | return GNUNET_YES; |
738 | } | 740 | } |
739 | 741 | ||