fix for Assertion failed at gnunet-service-ats_addresses.c:587
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 15 Feb 2012 09:49:12 +0000 (09:49 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 15 Feb 2012 09:49:12 +0000 (09:49 +0000)
src/transport/gnunet-service-transport_neighbours.c

index 91005cdd752cbe70c3a1c08992ef93b8a30d980f..e5ac5b4e3739217d91ac812c6b54e4abdd33f7f8 100644 (file)
@@ -1512,7 +1512,7 @@ GST_neighbours_switch_to_address (const struct GNUNET_PeerIdentity *peer,
         GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_get ());
 
     cc = GNUNET_malloc (sizeof (struct ContinutionContext));
-    cc->session = session;
+    cc->session = n->session;
     cc->address = GNUNET_HELLO_address_copy (address);
 
     ret = send_with_session (n,
@@ -1531,7 +1531,7 @@ GST_neighbours_switch_to_address (const struct GNUNET_PeerIdentity *peer,
     connect_msg.timestamp =
         GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_get ());
     cc = GNUNET_malloc (sizeof (struct ContinutionContext));
-    cc->session = session;
+    cc->session = n->session;
     cc->address = GNUNET_HELLO_address_copy (address);
 
     ret = send_with_session(n,
@@ -1551,7 +1551,7 @@ GST_neighbours_switch_to_address (const struct GNUNET_PeerIdentity *peer,
     connect_msg.timestamp =
         GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_get ());
     cc = GNUNET_malloc (sizeof (struct ContinutionContext));
-    cc->session = session;
+    cc->session = n->session;
     cc->address = GNUNET_HELLO_address_copy (address);
     ret = send_with_session(n,
                             (const void *) &connect_msg, msg_len,