set: zero out listener to make tracking down bug easier
authorFlorian Dold <florian.dold@gmail.com>
Tue, 28 Feb 2017 15:53:19 +0000 (16:53 +0100)
committerFlorian Dold <florian.dold@gmail.com>
Tue, 28 Feb 2017 15:53:19 +0000 (16:53 +0100)
src/set/gnunet-service-set.c

index 30d43e8a14b53542fc584c4e7d7c3fd690ba27b0..3e6e0791a8fc5ed8c22d2a1b21d923cf204b8bd0 100644 (file)
@@ -233,6 +233,7 @@ listener_destroy (struct Listener *listener)
   GNUNET_CONTAINER_DLL_remove (listeners_head,
                                listeners_tail,
                                listener);
+  *listener = (struct Listener) { 0 };
   GNUNET_free (listener);
 }