aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-11-08 14:55:45 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-11-08 14:55:45 +0000
commitfd628998a62967206e8aa7e9464f54fed16ea373 (patch)
treec1a2fcddc82c8744a65cbe3a0f6c3ca92aaa23e5 /src
parent876d49149c192e9531581989e988c1a5637e1389 (diff)
downloadgnunet-fd628998a62967206e8aa7e9464f54fed16ea373.tar.gz
gnunet-fd628998a62967206e8aa7e9464f54fed16ea373.zip
trying to fix https://ng.gnunet.org/bugs/view.php?id=1888
Diffstat (limited to 'src')
-rw-r--r--src/transport/plugin_transport_udp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index 667af25be..00e0a9fa3 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -540,6 +540,7 @@ destroy_inbound_session (void *cls, const GNUNET_HashCode * key, void *value)
540 GNUNET_SCHEDULER_cancel (s->invalidation_task); 540 GNUNET_SCHEDULER_cancel (s->invalidation_task);
541 if (GNUNET_SCHEDULER_NO_TASK != s->delayed_cont_task) 541 if (GNUNET_SCHEDULER_NO_TASK != s->delayed_cont_task)
542 GNUNET_SCHEDULER_cancel (s->delayed_cont_task); 542 GNUNET_SCHEDULER_cancel (s->delayed_cont_task);
543 GNUNET_CONTAINER_multihashmap_remove(s->plugin->inbound_sessions, &s->target.hashPubKey, s);
543 GNUNET_free (s); 544 GNUNET_free (s);
544 return GNUNET_OK; 545 return GNUNET_OK;
545} 546}
@@ -569,7 +570,7 @@ udp_disconnect (void *cls, const struct GNUNET_PeerIdentity *target)
569 &target->hashPubKey, 570 &target->hashPubKey,
570 &destroy_inbound_session, NULL); 571 &destroy_inbound_session, NULL);
571 GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "sendto"); 572 GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "sendto");
572 LOG (GNUNET_ERROR_TYPE_ERROR, "UDP DISCONNECT\n"); 573
573 574
574 plugin->last_expected_delay = GNUNET_FRAGMENT_context_destroy (session->frag); 575 plugin->last_expected_delay = GNUNET_FRAGMENT_context_destroy (session->frag);
575 if (GNUNET_SCHEDULER_NO_TASK != session->delayed_cont_task) 576 if (GNUNET_SCHEDULER_NO_TASK != session->delayed_cont_task)