]> granicus.if.org Git - neomutt/commitdiff
bug: check for aborted dir read
authorRichard Russon <rich@flatcap.org>
Mon, 10 Sep 2018 20:08:49 +0000 (21:08 +0100)
committerRichard Russon <rich@flatcap.org>
Mon, 10 Sep 2018 20:08:49 +0000 (21:08 +0100)
maildir/mh.c

index 1eff2a05d0e3c155e7c23b478d9fc95d506c7a5e..b1f27d78217e5529c4f9049b7e1250027849b723 100644 (file)
@@ -1459,7 +1459,7 @@ static int mh_read_dir(struct Context *ctx, const char *subdir)
   md = NULL;
   last = &md;
   count = 0;
-  if (maildir_parse_dir(ctx->mailbox, &last, subdir, &count, &progress) == -1)
+  if (maildir_parse_dir(ctx->mailbox, &last, subdir, &count, &progress) < 0)
     return -1;
 
   if (!ctx->mailbox->quiet)