From: Bart Polot Date: Wed, 25 Jul 2012 08:50:21 +0000 (+0000) Subject: - don't allow unexpected ACKs X-Git-Tag: initial-import-from-subversion-38251~12344 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=16cedbd0409bd03e66d329e8fe3504e7638534c5;p=oweals%2Fgnunet.git - don't allow unexpected ACKs --- diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 25d7afc4f..3910d8cc0 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -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;