From: Matthias Wachs Date: Mon, 12 Apr 2010 15:20:47 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~22191 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=de58a619e8330b14a9a712d59acb1fbe4124eea4;p=oweals%2Fgnunet.git --- 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, struct GNUNET_TIME_Relative latency, uint32_t distance) { + int size = ntohs (message->size); + int type = ntohs (message->type); + if ( type != GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT) + return GNUNET_NO; #if DEBUG_HOSTLIST_CLIENT GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Hostlist client recieved advertisement message\n"); + "Hostlist client recieved advertisement message, size %u, type %u\n",size,type); #endif - /* put code to use message here */ - return GNUNET_YES; }