s3:smbd: make use of vfs_remove_all_fsp_extensions() in file_free()
authorStefan Metzmacher <metze@samba.org>
Mon, 4 Jun 2012 15:55:28 +0000 (17:55 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 6 Jun 2012 08:18:37 +0000 (10:18 +0200)
metze

source3/smbd/files.c

index fcdd74029036a937ffd7766d9fe919614a3edf1e..9937fc6c82c3843927ddbea3c9fd02fc97f00179 100644 (file)
@@ -511,9 +511,7 @@ void file_free(struct smb_request *req, files_struct *fsp)
        }
 
        /* Drop all remaining extensions. */
-       while (fsp->vfs_extension) {
-               vfs_remove_fsp_extension(fsp->vfs_extension->owner, fsp);
-       }
+       vfs_remove_all_fsp_extensions(fsp);
 
        /* this is paranoia, just in case someone tries to reuse the
           information */