summaryrefslogtreecommitdiff
path: root/src/rps/test_rps.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2015-08-03 15:49:30 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2015-08-03 15:49:30 +0000
commitda37fac0e6f27a112d39e44fd78cda619627d107 (patch)
tree3251ca7673a0a88611b49199837694dffe3f013c /src/rps/test_rps.c
parent9cbdef2552dc31d4faf71f5dc961f27f3a99d559 (diff)
downloadgnunet-da37fac0e6f27a112d39e44fd78cda619627d107.tar.gz
gnunet-da37fac0e6f27a112d39e44fd78cda619627d107.zip
- set the connection handle to NULL upon disconnecting
Diffstat (limited to 'src/rps/test_rps.c')
-rw-r--r--src/rps/test_rps.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c
index 683f2e8a3..d3b41801a 100644
--- a/src/rps/test_rps.c
+++ b/src/rps/test_rps.c
@@ -655,8 +655,11 @@ static void
655rps_disconnect_adapter (void *cls, 655rps_disconnect_adapter (void *cls,
656 void *op_result) 656 void *op_result)
657{ 657{
658 struct RPSPeer *peer = cls;
658 struct GNUNET_RPS_Handle *h = op_result; 659 struct GNUNET_RPS_Handle *h = op_result;
660 GNUNET_assert (NULL != peer);
659 GNUNET_RPS_disconnect (h); 661 GNUNET_RPS_disconnect (h);
662 peer->rps_handle = NULL;
660} 663}
661 664
662 665