src/server/daemon/vfs.c

branch
webdav
changeset 269
3dfbd0b91950
parent 247
1df803e06076
child 276
0cb4eda146c4
--- a/src/server/daemon/vfs.c	Thu Jan 20 16:04:58 2022 +0100
+++ b/src/server/daemon/vfs.c	Sat Jan 22 11:06:11 2022 +0100
@@ -419,6 +419,9 @@
     DIR *sys_dir = fdopendir(dir_fd);
 #endif
     if(!sys_dir) {
+        if(dir_fd > 0) {
+            close(dir_fd);
+        }
         if(ctx) {
             ctx->vfs_errno = errno;
             sys_set_error_status(ctx);

mercurial