diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_connection.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index dd4577447..47b4f3955 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c | |||
@@ -1547,8 +1547,8 @@ register_neighbors (struct CadetConnection *c) | |||
1547 | GCP_is_neighbor (c->next_peer)); | 1547 | GCP_is_neighbor (c->next_peer)); |
1548 | return GNUNET_SYSERR; | 1548 | return GNUNET_SYSERR; |
1549 | } | 1549 | } |
1550 | GCP_add_connection (c->next_peer, c); | 1550 | GCP_add_connection (c->next_peer, c, GNUNET_NO); |
1551 | GCP_add_connection (c->prev_peer, c); | 1551 | GCP_add_connection (c->prev_peer, c, GNUNET_YES); |
1552 | 1552 | ||
1553 | return GNUNET_OK; | 1553 | return GNUNET_OK; |
1554 | } | 1554 | } |
@@ -1566,10 +1566,10 @@ unregister_neighbors (struct CadetConnection *c) | |||
1566 | 1566 | ||
1567 | peer = get_next_hop (c); | 1567 | peer = get_next_hop (c); |
1568 | GNUNET_assert (c->next_peer == peer); | 1568 | GNUNET_assert (c->next_peer == peer); |
1569 | GCP_remove_connection (peer, c); | 1569 | GCP_remove_connection (peer, c, GNUNET_NO); |
1570 | peer = get_prev_hop (c); | 1570 | peer = get_prev_hop (c); |
1571 | GNUNET_assert (c->prev_peer == peer); | 1571 | GNUNET_assert (c->prev_peer == peer); |
1572 | GCP_remove_connection (peer, c); | 1572 | GCP_remove_connection (peer, c, GNUNET_YES); |
1573 | } | 1573 | } |
1574 | 1574 | ||
1575 | 1575 | ||
@@ -1583,7 +1583,8 @@ unregister_neighbors (struct CadetConnection *c) | |||
1583 | * @param peer Peer. | 1583 | * @param peer Peer. |
1584 | */ | 1584 | */ |
1585 | static void | 1585 | static void |
1586 | add_to_peer (struct CadetConnection *c, struct CadetPeer *peer) | 1586 | add_to_peer (struct CadetConnection *c, |
1587 | struct CadetPeer *peer) | ||
1587 | { | 1588 | { |
1588 | GCP_add_tunnel (peer); | 1589 | GCP_add_tunnel (peer); |
1589 | c->t = GCP_get_tunnel (peer); | 1590 | c->t = GCP_get_tunnel (peer); |