Commit Diff


commit - cb9a0b4a910d6f16b6f814e8036a6cec3db1a66f
commit + 6e15b1b7c6e58c8ba4c2ed4d53bb1a41adc41ce0
blob - 29a5f19e7387f5bd67f87e79ce0785004f9755f5
blob + 3807990e52955e77af59f339a73fd88bd515bf2c
--- 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;