[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r21301 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r21301 - gnunet/src/transport |
Date: |
Sun, 6 May 2012 20:15:36 +0200 |
Author: grothoff
Date: 2012-05-06 20:15:36 +0200 (Sun, 06 May 2012)
New Revision: 21301
Modified:
gnunet/src/transport/plugin_transport_unix.c
Log:
-fixing #2170
Modified: gnunet/src/transport/plugin_transport_unix.c
===================================================================
--- gnunet/src/transport/plugin_transport_unix.c 2012-05-06 18:04:22 UTC
(rev 21300)
+++ gnunet/src/transport/plugin_transport_unix.c 2012-05-06 18:15:36 UTC
(rev 21301)
@@ -290,17 +290,16 @@
msgw = plugin->msg_head;
removed = GNUNET_NO;
- while (NULL != (msgw = plugin->msg_head))
+ for (msgw = plugin->msg_head; NULL != msgw; msgw = msgw->next)
{
- if (msgw->session == s)
- {
- GNUNET_CONTAINER_DLL_remove (plugin->msg_head, plugin->msg_tail, msgw);
- if (msgw->cont != NULL)
- msgw->cont (msgw->cont_cls, &msgw->session->target, GNUNET_SYSERR);
- GNUNET_free (msgw->msg);
- GNUNET_free (msgw);
- removed = GNUNET_YES;
- }
+ if (msgw->session != s)
+ continue;
+ GNUNET_CONTAINER_DLL_remove (plugin->msg_head, plugin->msg_tail, msgw);
+ if (NULL != msgw->cont)
+ msgw->cont (msgw->cont_cls, &msgw->session->target, GNUNET_SYSERR);
+ GNUNET_free (msgw->msg);
+ GNUNET_free (msgw);
+ removed = GNUNET_YES;
}
if ((GNUNET_YES == removed) && (NULL == plugin->msg_head))
reschedule_select (plugin);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r21301 - gnunet/src/transport,
gnunet <=