瀏覽代碼

Fixed lfs_dir_fetchmatch not propogating bd errors correctly in one case

Found by cbiffle
Christopher Haster 3 年之前
父節點
當前提交
d08f949afd
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lfs.c

+ 1 - 0
lfs.c

@@ -1162,6 +1162,7 @@ static lfs_stag_t lfs_dir_fetchmatch(lfs_t *lfs,
                         dir->erased = false;
                         break;
                     }
+                    return err;
                 }
                 lfs_pair_fromle32(temptail);
             }