[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r32767 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r32767 - gnunet/src/mesh |
Date: |
Sat, 22 Mar 2014 03:58:37 +0100 |
Author: bartpolot
Date: 2014-03-22 03:58:37 +0100 (Sat, 22 Mar 2014)
New Revision: 32767
Modified:
gnunet/src/mesh/gnunet-service-mesh_connection.c
Log:
- fix peer to notify
Modified: gnunet/src/mesh/gnunet-service-mesh_connection.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_connection.c 2014-03-22 02:58:36 UTC
(rev 32766)
+++ gnunet/src/mesh/gnunet-service-mesh_connection.c 2014-03-22 02:58:37 UTC
(rev 32767)
@@ -1776,13 +1776,15 @@
if (GMC_is_terminal (c, fwd))
{
struct GNUNET_MessageHeader *out_msg;
- struct MeshPeer *peer;
+ struct MeshPeer *neighbor;
+ struct MeshPeer *endpoint;
- peer = get_hop (c, !fwd);
+ neighbor = get_hop (c, !fwd);
+ endpoint = GMP_get_short (c->path->peers[c->path->length - 1]);
path_invalidate (c->path);
- GMP_notify_broken_link (c->t, &msg->peer1, &msg->peer2);
+ GMP_notify_broken_link (endpoint, &msg->peer1, &msg->peer2);
c->state = MESH_CONNECTION_DESTROYED;
- while (NULL != (out_msg = GMP_connection_pop (peer, c)))
+ while (NULL != (out_msg = GMP_connection_pop (neighbor, c)))
{
GNUNET_assert (NULL ==
GMT_send_prebuilt_message (out_msg, c->t, NULL,
GNUNET_YES,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r32767 - gnunet/src/mesh,
gnunet <=