(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Mon, 12 Apr 2010 15:20:47 +0000 (15:20 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Mon, 12 Apr 2010 15:20:47 +0000 (15:20 +0000)
src/hostlist/hostlist-client.c

index ee33c83fc808a0ec562d5c25b166893bb9b006ad..9af75fec2b3b118dee7b599a85a50871c1bfa364 100644 (file)
@@ -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;
 }