RPS: NULL out cadet port after closing
authorJulius Bünger <buenger@mytum.de>
Tue, 26 Feb 2019 15:13:21 +0000 (16:13 +0100)
committerJulius Bünger <buenger@mytum.de>
Tue, 26 Feb 2019 15:13:21 +0000 (16:13 +0100)
src/rps/gnunet-service-rps.c

index 7e032997e4ce972e1a51ee4d6e1d55ca165f998b..1f9f7ba79d0876fb732fd7f327cacd9d7d41e515 100644 (file)
@@ -2993,6 +2993,7 @@ destroy_sub (struct Sub *sub)
 
   /* Disconnect from cadet */
   GNUNET_CADET_close_port (sub->cadet_port);
+  sub->cadet_port= NULL;
 
   /* Clean up data structures for peers */
   RPS_sampler_destroy (sub->sampler);