Fix bug #5083 (and duplicate bug #5084).
[samba.git] / 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,