diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-05-06 18:15:36 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-05-06 18:15:36 +0000 |
commit | 11b22537ab75960687f9c5cea26314a1ac7aa56b (patch) | |
tree | 84460dc72e87d2c71f6f7ab825fbda43631d02a8 /src/transport/plugin_transport_unix.c | |
parent | 5c748fe953690879274eb47049089dd4e6f85810 (diff) | |
download | gnunet-11b22537ab75960687f9c5cea26314a1ac7aa56b.tar.gz gnunet-11b22537ab75960687f9c5cea26314a1ac7aa56b.zip |
-fixing #2170
Diffstat (limited to 'src/transport/plugin_transport_unix.c')
-rw-r--r-- | src/transport/plugin_transport_unix.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index a858b9a2d..b81d4d4e1 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c | |||
@@ -290,17 +290,16 @@ get_session_delete_it (void *cls, const GNUNET_HashCode * key, void *value) | |||
290 | 290 | ||
291 | msgw = plugin->msg_head; | 291 | msgw = plugin->msg_head; |
292 | removed = GNUNET_NO; | 292 | removed = GNUNET_NO; |
293 | while (NULL != (msgw = plugin->msg_head)) | 293 | for (msgw = plugin->msg_head; NULL != msgw; msgw = msgw->next) |
294 | { | 294 | { |
295 | if (msgw->session == s) | 295 | if (msgw->session != s) |
296 | { | 296 | continue; |
297 | GNUNET_CONTAINER_DLL_remove (plugin->msg_head, plugin->msg_tail, msgw); | 297 | GNUNET_CONTAINER_DLL_remove (plugin->msg_head, plugin->msg_tail, msgw); |
298 | if (msgw->cont != NULL) | 298 | if (NULL != msgw->cont) |
299 | msgw->cont (msgw->cont_cls, &msgw->session->target, GNUNET_SYSERR); | 299 | msgw->cont (msgw->cont_cls, &msgw->session->target, GNUNET_SYSERR); |
300 | GNUNET_free (msgw->msg); | 300 | GNUNET_free (msgw->msg); |
301 | GNUNET_free (msgw); | 301 | GNUNET_free (msgw); |
302 | removed = GNUNET_YES; | 302 | removed = GNUNET_YES; |
303 | } | ||
304 | } | 303 | } |
305 | if ((GNUNET_YES == removed) && (NULL == plugin->msg_head)) | 304 | if ((GNUNET_YES == removed) && (NULL == plugin->msg_head)) |
306 | reschedule_select (plugin); | 305 | reschedule_select (plugin); |