- don't allow unexpected ACKs
authorBart Polot <bart@net.in.tum.de>
Wed, 25 Jul 2012 08:50:21 +0000 (08:50 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 25 Jul 2012 08:50:21 +0000 (08:50 +0000)
src/mesh/gnunet-service-mesh.c

index 25d7afc4f16894c1eb9f284eb7c1e89599f1ac65..3910d8cc06ab31f111852032986e5344395216aa 100644 (file)
@@ -4518,11 +4518,8 @@ handle_mesh_ack (void *cls, const struct GNUNET_PeerIdentity *peer,
                                              &peer->hashPubKey);
   if (NULL == cinfo)
   {
-    cinfo = GNUNET_malloc (sizeof (struct MeshTunnelChildInfo));
-    cinfo->id = GNUNET_PEER_intern (peer);
-    cinfo->max_pid = ack;
-    cinfo->skip = t->pid; // FIXME create on send?
-    cinfo->pid = t->pid;
+    GNUNET_break_op (0);
+    return GNUNET_OK;
   }
   tunnel_send_ack (t, GNUNET_MESSAGE_TYPE_MESH_ACK);
   return GNUNET_OK;