summaryrefslogtreecommitdiff
path: root/source3/lib/replace/repdir_getdents.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/replace/repdir_getdents.c')
-rw-r--r--source3/lib/replace/repdir_getdents.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source3/lib/replace/repdir_getdents.c b/source3/lib/replace/repdir_getdents.c
index 3bf76ee858..6b115c4c4f 100644
--- a/source3/lib/replace/repdir_getdents.c
+++ b/source3/lib/replace/repdir_getdents.c
@@ -80,16 +80,16 @@ DIR *opendir(const char *dname)
return NULL;
}
if (fstat(d->fd, &sb) < 0) {
- close(d->fd);
- free(d);
- return NULL;
- }
- if (!S_ISDIR(sb.st_mode)) {
- close(d->fd);
- free(d);
- errno = ENOTDIR;
- return NULL;
- }
+ close(d->fd);
+ free(d);
+ return NULL;
+ }
+ if (!S_ISDIR(sb.st_mode)) {
+ close(d->fd);
+ free(d);
+ errno = ENOTDIR;
+ return NULL;
+ }
d->ofs = 0;
d->seekpos = 0;
d->nbytes = 0;