From f6eef5e44e099e73d1666f8b0dfcf966503afba4 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 27 Apr 2012 13:29:06 +0000 Subject: [PATCH] - fix --- src/transport/plugin_transport_unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index 0d5a84528..9027c2773 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c @@ -803,7 +803,7 @@ unix_plugin_select_write (struct Plugin * plugin) { GNUNET_CONTAINER_DLL_remove(plugin->msg_head, plugin->msg_tail, msgw); - GNUNET_assert (plugin->bytes_in_queue > msgw->msgsize); + GNUNET_assert (plugin->bytes_in_queue >= msgw->msgsize); plugin->bytes_in_queue -= msgw->msgsize; GNUNET_STATISTICS_set (plugin->env->stats,"# UNIX bytes in send queue", plugin->bytes_in_queue, GNUNET_NO); @@ -818,7 +818,7 @@ unix_plugin_select_write (struct Plugin * plugin) { GNUNET_CONTAINER_DLL_remove(plugin->msg_head, plugin->msg_tail, msgw); - GNUNET_assert (plugin->bytes_in_queue > msgw->msgsize); + GNUNET_assert (plugin->bytes_in_queue >= msgw->msgsize); plugin->bytes_in_queue -= msgw->msgsize; GNUNET_STATISTICS_set (plugin->env->stats,"# UNIX bytes in send queue", plugin->bytes_in_queue, GNUNET_NO); -- 2.25.1