From: Michael Adam Date: Thu, 15 Nov 2007 10:08:53 +0000 (+0100) Subject: Fix bug #5083 (and duplicate bug #5084). X-Git-Tag: samba-3.2.0pre2~507 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=242fc0099cc81877d8e9630b46dfb8d4a3265d94 Fix bug #5083 (and duplicate bug #5084). 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 --- diff --git a/source/modules/vfs_solarisacl.c b/source/modules/vfs_solarisacl.c index b29c218ff42..673b6805afb 100644 --- a/source/modules/vfs_solarisacl.c +++ b/source/modules/vfs_solarisacl.c @@ -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,