fix
authorChristian Grothoff <christian@grothoff.org>
Fri, 24 Jun 2011 07:20:31 +0000 (07:20 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 24 Jun 2011 07:20:31 +0000 (07:20 +0000)
src/util/connection.c

index 27a94bd22c5ae5a9f77de5a1432ae600dcc8a1dd..ccdaaa9ed1c787beb7d6b9597fe2b593bfb3f608 100644 (file)
@@ -1619,6 +1619,7 @@ SCHEDULE_WRITE:
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Re-scheduling transmit_ready (more to do) (%p).\n", sock);
 #endif
+  have = sock->write_buffer_off - sock->write_buffer_pos;
   GNUNET_assert ( (sock->nth.notify_ready != NULL) || (have > 0) );
   if (sock->write_task == GNUNET_SCHEDULER_NO_TASK)
     sock->write_task =