From de58a619e8330b14a9a712d59acb1fbe4124eea4 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 12 Apr 2010 15:20:47 +0000 Subject: [PATCH] --- src/hostlist/hostlist-client.c | 8 +++++--- 1 file 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, 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; } -- 2.25.1