-fix fix
authorChristian Grothoff <christian@grothoff.org>
Fri, 8 Jul 2016 17:20:54 +0000 (17:20 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 8 Jul 2016 17:20:54 +0000 (17:20 +0000)
src/fs/gnunet-service-fs_cadet_server.c

index b1de0bb6ca1c053c6bdda0c1d1f9fd2e7cc60670..21874b674ad0ac482f1f303071be36ade4112a0a 100644 (file)
@@ -257,8 +257,8 @@ write_continuation (void *cls,
   GNUNET_STATISTICS_update (GSF_stats,
                            gettext_noop ("# Blocks transferred via cadet"), 1,
                            GNUNET_NO);
-  GNUNET_memcpy (buf, &wqi[1], ret);
   ret = wqi->msize;
+  GNUNET_memcpy (buf, &wqi[1], ret);
   GNUNET_free (wqi);
   continue_writing (sc);
   return ret;