Fix
authorBart Polot <bart@net.in.tum.de>
Mon, 17 Oct 2011 16:52:59 +0000 (16:52 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 17 Oct 2011 16:52:59 +0000 (16:52 +0000)
src/mesh/mesh_api_new.c

index b3037e56279db423ee7c6292b0f86e3060b375e6..867136292dc6501b6b676de67b884ef4a267a7ef 100644 (file)
@@ -1066,8 +1066,10 @@ send_callback (void *cls, size_t size, void *buf)
       {
         /* multicast */
         struct GNUNET_MESH_Multicast mc;
+        struct GNUNET_MessageHeader *mh;
 
         GNUNET_assert (size >= th->size);
+        mh = (struct GNUNET_MessageHeader *) &cbuf[sizeof (mc)];
         psize =
             th->notify (th->notify_cls, size - sizeof (mc), &cbuf[sizeof (mc)]);
         GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,