aboutsummaryrefslogtreecommitdiff
path: root/src/set/gnunet-service-set.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-17 15:16:44 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-17 15:16:44 +0100
commit8ad5ede4c2d3dc970a3c721887f2b0cc38a31931 (patch)
tree37c9eb9a603ec7ead0d9f866b0ee0bbc2034d1c7 /src/set/gnunet-service-set.c
parentdf55d08fd1316908c1e5ec65ca8b8947ca46d007 (diff)
downloadgnunet-8ad5ede4c2d3dc970a3c721887f2b0cc38a31931.tar.gz
gnunet-8ad5ede4c2d3dc970a3c721887f2b0cc38a31931.zip
fix crash issues in SET
Diffstat (limited to 'src/set/gnunet-service-set.c')
-rw-r--r--src/set/gnunet-service-set.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/set/gnunet-service-set.c b/src/set/gnunet-service-set.c
index 7ebb30b01..5633561ac 100644
--- a/src/set/gnunet-service-set.c
+++ b/src/set/gnunet-service-set.c
@@ -229,11 +229,6 @@ listener_destroy (struct Listener *listener)
229 GNUNET_SERVICE_client_drop (client); 229 GNUNET_SERVICE_client_drop (client);
230 return; 230 return;
231 } 231 }
232 if (NULL != listener->client_mq)
233 {
234 GNUNET_MQ_destroy (listener->client_mq);
235 listener->client_mq = NULL;
236 }
237 GNUNET_CADET_close_port (listener->open_port); 232 GNUNET_CADET_close_port (listener->open_port);
238 GNUNET_CONTAINER_DLL_remove (listeners_head, 233 GNUNET_CONTAINER_DLL_remove (listeners_head,
239 listeners_tail, 234 listeners_tail,
@@ -473,11 +468,6 @@ _GSS_operation_destroy (struct Operation *op,
473 GNUNET_free (op->spec); 468 GNUNET_free (op->spec);
474 op->spec = NULL; 469 op->spec = NULL;
475 } 470 }
476 if (NULL != op->mq)
477 {
478 GNUNET_MQ_destroy (op->mq);
479 op->mq = NULL;
480 }
481 if (NULL != (channel = op->channel)) 471 if (NULL != (channel = op->channel))
482 { 472 {
483 op->channel = NULL; 473 op->channel = NULL;
@@ -537,11 +527,6 @@ set_destroy (struct Set *set)
537 _GSS_operation_destroy (set->ops_head, GNUNET_NO); 527 _GSS_operation_destroy (set->ops_head, GNUNET_NO);
538 set->vt->destroy_set (set->state); 528 set->vt->destroy_set (set->state);
539 set->state = NULL; 529 set->state = NULL;
540 if (NULL != set->client_mq)
541 {
542 GNUNET_MQ_destroy (set->client_mq);
543 set->client_mq = NULL;
544 }
545 if (NULL != set->iter) 530 if (NULL != set->iter)
546 { 531 {
547 GNUNET_CONTAINER_multihashmap_iterator_destroy (set->iter); 532 GNUNET_CONTAINER_multihashmap_iterator_destroy (set->iter);
@@ -687,11 +672,6 @@ incoming_destroy (struct Operation *incoming)
687 GNUNET_free (incoming->spec); 672 GNUNET_free (incoming->spec);
688 incoming->spec = NULL; 673 incoming->spec = NULL;
689 } 674 }
690 if (NULL != incoming->mq)
691 {
692 GNUNET_MQ_destroy (incoming->mq);
693 incoming->mq = NULL;
694 }
695 if (NULL != (channel = incoming->channel)) 675 if (NULL != (channel = incoming->channel))
696 { 676 {
697 incoming->channel = NULL; 677 incoming->channel = NULL;