aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-10-19 14:19:55 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-10-19 14:19:55 +0000
commitcce106d108d8e09cb8dba58a9df5ba9dbcaa9331 (patch)
tree3ba520cf02183507cc2334e23c33628c59ec0a7f /src
parent52e6917e8f8d3c4c93c877fa4c3132472e51bdf5 (diff)
downloadgnunet-cce106d108d8e09cb8dba58a9df5ba9dbcaa9331.tar.gz
gnunet-cce106d108d8e09cb8dba58a9df5ba9dbcaa9331.zip
fix
Diffstat (limited to 'src')
-rw-r--r--src/testbed/gnunet-service-testbed.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/testbed/gnunet-service-testbed.c b/src/testbed/gnunet-service-testbed.c
index 895ab34ca..0f75f028d 100644
--- a/src/testbed/gnunet-service-testbed.c
+++ b/src/testbed/gnunet-service-testbed.c
@@ -2666,13 +2666,14 @@ cleanup_occ (struct OverlayConnectContext *occ)
2666 { 2666 {
2667 GNUNET_TRANSPORT_disconnect (occ->p2th); 2667 GNUNET_TRANSPORT_disconnect (occ->p2th);
2668 peer_list[occ->other_peer_id]->reference_cnt--; 2668 peer_list[occ->other_peer_id]->reference_cnt--;
2669 if ((GNUNET_YES == peer_list[occ->other_peer_id]->destroy_flag)
2670 && (0 == peer_list[occ->other_peer_id]->reference_cnt))
2671 destroy_peer (peer_list[occ->other_peer_id]);
2672 } 2669 }
2673 if ((GNUNET_YES == occ->peer->destroy_flag) 2670 if ((GNUNET_YES == occ->peer->destroy_flag)
2674 && (0 == occ->peer->reference_cnt)) 2671 && (0 == occ->peer->reference_cnt))
2675 destroy_peer (occ->peer); 2672 destroy_peer (occ->peer);
2673 if ((NULL == occ->peer2_controller)
2674 && (GNUNET_YES == peer_list[occ->other_peer_id]->destroy_flag)
2675 && (0 == peer_list[occ->other_peer_id]->reference_cnt))
2676 destroy_peer (peer_list[occ->other_peer_id]);
2676 GNUNET_CONTAINER_DLL_remove (occq_head, occq_tail, occ); 2677 GNUNET_CONTAINER_DLL_remove (occq_head, occq_tail, occ);
2677 GNUNET_free (occ); 2678 GNUNET_free (occ);
2678} 2679}