-make mst more reentrant
authorChristian Grothoff <christian@grothoff.org>
Sun, 29 Jan 2012 21:32:50 +0000 (21:32 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 29 Jan 2012 21:32:50 +0000 (21:32 +0000)
src/util/server_mst.c

index 026601eb9fe09b210e8ab00c56bad09b2d672902..0a6eee49cd2a98548f0e8ebb6f3982aeb432f55d 100644 (file)
@@ -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! */