[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r32903 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r32903 - gnunet/src/transport |
Date: |
Mon, 7 Apr 2014 11:20:31 +0200 |
Author: wachs
Date: 2014-04-07 11:20:31 +0200 (Mon, 07 Apr 2014)
New Revision: 32903
Modified:
gnunet/src/transport/plugin_transport_udp.c
Log:
fixng crash on shutdown
Modified: gnunet/src/transport/plugin_transport_udp.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp.c 2014-04-07 09:19:28 UTC (rev
32902)
+++ gnunet/src/transport/plugin_transport_udp.c 2014-04-07 09:20:31 UTC (rev
32903)
@@ -1265,15 +1265,18 @@
frc.addr = s->address->address;
frc.addr_len = s->address->address_length;
/* Lookup existing receive context for this address */
- GNUNET_CONTAINER_heap_iterate (plugin->defrag_ctxs,
- &find_receive_context, &frc);
- if (NULL != frc.rc)
+ if (NULL != plugin->defrag_ctxs)
{
- struct DefragContext *d_ctx = frc.rc;
- GNUNET_CONTAINER_heap_remove_node (d_ctx->hnode);
- GNUNET_DEFRAGMENT_context_destroy (d_ctx->defrag);
- GNUNET_free (d_ctx);
+ GNUNET_CONTAINER_heap_iterate (plugin->defrag_ctxs,
+ &find_receive_context, &frc);
+ if (NULL != frc.rc)
+ {
+ struct DefragContext *d_ctx = frc.rc;
+ GNUNET_CONTAINER_heap_remove_node (d_ctx->hnode);
+ GNUNET_DEFRAGMENT_context_destroy (d_ctx->defrag);
+ GNUNET_free (d_ctx);
}
+ }
next = plugin->ipv4_queue_head;
while (NULL != (udpw = next))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r32903 - gnunet/src/transport,
gnunet <=