From: Matthias Wachs Date: Fri, 27 Apr 2012 13:29:06 +0000 (+0000) Subject: - fix X-Git-Tag: initial-import-from-subversion-38251~13737 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f6eef5e44e099e73d1666f8b0dfcf966503afba4;p=oweals%2Fgnunet.git - fix --- 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);