From 232fe056c0b1e9a1f5e9046dd165f47930782b82 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 6 Jul 2012 09:06:56 +0000 Subject: [PATCH] - filter for expected message type --- src/transport/gnunet-transport.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/transport/gnunet-transport.c b/src/transport/gnunet-transport.c index 65c574f62..b70c9c4b0 100644 --- a/src/transport/gnunet-transport.c +++ b/src/transport/gnunet-transport.c @@ -493,6 +493,8 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer, { if (!benchmark_receive) return; + if (GNUNET_MESSAGE_TYPE_DUMMY != ntohs (message->type)) + return; if (verbosity > 0) FPRINTF (stdout, _("Received %u bytes from %s\n"), (unsigned int) ntohs (message->size), GNUNET_i2s (peer)); -- 2.25.1