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:14:58 +0000 (11:14 +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 b39ec447dfc459a813ffc12b52b8d617667b02de..8c28213f01d6d9d069a13567336b2794034721fb 100644 (file)
@@ -129,7 +129,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,