fix assertion
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 31 Jan 2012 08:19:58 +0000 (08:19 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 31 Jan 2012 08:19:58 +0000 (08:19 +0000)
src/transport/test_transport_api.c

index 401657c9f4a426ab0762dd1055532833ef06f87d..19121910743ae5e32849245b5d5ed5f772db059c 100644 (file)
@@ -162,7 +162,7 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
   GNUNET_free (ps);
 
   if ((MTYPE == ntohs (message->type)) &&
-      (sizeof (struct GNUNET_MessageHeader) == ntohs (message->size)))
+      (MSIZE == ntohs (message->size)))
   {
     ok = 0;
     end ();