-fix
authorChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 09:47:23 +0000 (09:47 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 09:47:23 +0000 (09:47 +0000)
src/fs/fs_dirmetascan.c

index b9fa45c1f97321c885d5c128823e687bd30c7e80..0459ca009cdf031e76be6f82eb10ccd9bd99dc21 100644 (file)
@@ -765,6 +765,8 @@ scan_directory (void *cls, const char *filename)
   {
     do_stop = write_progress (adc, filename, S_ISDIR (sbuf.st_mode),
       GNUNET_DIR_SCANNER_DOES_NOT_EXIST);
+    if (do_stop)
+      return GNUNET_SYSERR;
     return GNUNET_OK;
   }
 
@@ -774,7 +776,7 @@ scan_directory (void *cls, const char *filename)
   if (do_stop)
   {
     /* We were asked to stop, acknowledge that and return */
-    do_stop = write_progress (adc, filename, S_ISDIR (sbuf.st_mode),
+    (void) write_progress (adc, filename, S_ISDIR (sbuf.st_mode),
       GNUNET_DIR_SCANNER_ASKED_TO_STOP);
     return GNUNET_SYSERR;
   }