From: Christian Grothoff Date: Sun, 29 Jan 2012 21:32:50 +0000 (+0000) Subject: -make mst more reentrant X-Git-Tag: initial-import-from-subversion-38251~15016 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=68401426269d202ae48d4942842f365198886c57;p=oweals%2Fgnunet.git -make mst more reentrant --- diff --git a/src/util/server_mst.c b/src/util/server_mst.c index 026601eb9..0a6eee49c 100644 --- a/src/util/server_mst.c +++ b/src/util/server_mst.c @@ -216,8 +216,8 @@ do_align: } if (one_shot == GNUNET_YES) one_shot = GNUNET_SYSERR; - mst->cb (mst->cb_cls, client_identity, hdr); mst->off += want; + mst->cb (mst->cb_cls, client_identity, hdr); if (mst->off == mst->pos) { /* reset to beginning of buffer, it's free right now! */