From 793754fc2c9634e68fbecd82be55b67b1839bc04 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 6 Jul 2012 09:24:29 +0000 Subject: [PATCH] - additional checks --- src/core/test_core_api_send_to_self.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/test_core_api_send_to_self.c b/src/core/test_core_api_send_to_self.c index 75a2be1c5..626c5e15e 100644 --- a/src/core/test_core_api_send_to_self.c +++ b/src/core/test_core_api_send_to_self.c @@ -78,6 +78,8 @@ receive (void *cls, const struct GNUNET_PeerIdentity *other, GNUNET_SCHEDULER_cancel (die_task); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received message from peer %s\n", GNUNET_i2s (other)); + GNUNET_assert (GNUNET_MESSAGE_TYPE_DUMMY == ntohs (message->type)); + GNUNET_assert (0 == memcmp (other, &myself, sizeof (myself))); GNUNET_SCHEDULER_add_now (&cleanup, NULL); ret = 0; return GNUNET_OK; -- 2.25.1