Commit Diff
--- unreliablefs_ops.c +++ unreliablefs_ops.c @@ -459,6 +459,9 @@ int unreliable_readdir(const char *path, void *buf, fu } DIR *dp = (DIR *) fi->fh; + if (dp == NULL) { + return -errno; + } struct dirent *de; (void) offset;
--- unreliablefs_ops.c +++ unreliablefs_ops.c @@ -459,6 +459,9 @@ int unreliable_readdir(const char *path, void *buf, fu } DIR *dp = (DIR *) fi->fh; + if (dp == NULL) { + return -errno; + } struct dirent *de; (void) offset;