summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-14 16:30:25 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-14 16:30:25 +0000
commit4dc6c16a353cce59fac581fcbab5d5f22ee5ad6b (patch)
tree0cc16382742b1c471077fa3114862ec73b2b43a8 /src
parent75c4674d9a86cc3618d903ae56476cdbb6b24a94 (diff)
fixing 1891
Diffstat (limited to 'src')
-rw-r--r--src/transport/gnunet-service-transport.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index 7fd4760ef..0b21812de 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -333,6 +333,7 @@ static void
plugin_env_session_end (void *cls, const struct GNUNET_PeerIdentity *peer,
struct Session *session)
{
+ const char *transport_name = cls;
struct GNUNET_HELLO_Address address;
#if DEBUG_TRANSPORT
@@ -347,9 +348,9 @@ plugin_env_session_end (void *cls, const struct GNUNET_PeerIdentity *peer,
address.peer = *peer;
address.address = NULL;
address.address_length = 0;
- address.transport_name = cls;
- GNUNET_ATS_address_destroyed (GST_ats, &address, session);
+ address.transport_name = transport_name;
GST_neighbours_session_terminated (peer, session);
+ GNUNET_ATS_address_destroyed (GST_ats, &address, session);
}