-fix fix
[oweals/gnunet.git] / src / mesh / mesh_api.c
index 479203f451ab01e9e19949ad10ba5cc67544b8f6..bef8ecae3e574b4237969e90f2a0af53d532c013 100644 (file)
@@ -1152,7 +1152,7 @@ process_incoming_data (struct GNUNET_MESH_Handle *h,
   LOG (GNUNET_ERROR_TYPE_DEBUG, "  pid %u\n", pid);
   if (NULL == t)
   {
-    /* Tunnel was ignored, probably service didn't get it yet */
+    /* Tunnel was ignored/destroyed, probably service didn't get it yet */
     LOG (GNUNET_ERROR_TYPE_DEBUG, "  ignored!\n");
     return GNUNET_YES;
   }
@@ -1697,7 +1697,7 @@ GNUNET_MESH_announce_regex (struct GNUNET_MESH_Handle *h,
     msg->compression_characters = htons (compression_characters);
     memcpy (&msg[1], regex, len);
 
-    send_packet(h, msg, NULL);
+    send_packet(h, &msg->header, NULL);
   }
 }