Fix bug #5083 (and duplicate bug #5084).
authorMichael Adam <obnox@samba.org>
Thu, 15 Nov 2007 10:08:53 +0000 (11:08 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 15 Nov 2007 10:08:53 +0000 (11:08 +0100)
Make solarisacl_sys_acl_get_fd() return a result
when there is one (thereby fixing a memleak).

Thanks to Markus Zell for reporting this.

Michael

source/modules/vfs_solarisacl.c

index b29c218ff4265e5dd44efac8edf6bdf0aebd7522..673b6805afb5c7fa0fd7023b5870ecd94b4c12f2 100644 (file)
@@ -128,7 +128,7 @@ SMB_ACL_T solarisacl_sys_acl_get_fd(vfs_handle_struct *handle,
        DEBUG(10, ("solarisacl_sys_acl_get_fd %s.\n", 
                   ((result == NULL) ? "failed" : "succeeded")));
        SAFE_FREE(solaris_acl);
-       return NULL;
+       return result;
 }
 
 int solarisacl_sys_acl_set_file(vfs_handle_struct *handle,