diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-11-28 11:44:15 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-11-28 12:22:10 +0100 |
commit | 0f630abb3f197a8b672c6aa96362d83fdad1f92f (patch) | |
tree | ffe2bfd83af3531818b6baa6c7b79fa4862b349a /source3/modules/vfs_gpfs.c | |
parent | b3eb78c4f7123ccad6af50379c29d0939590d1ff (diff) | |
download | samba-0f630abb3f197a8b672c6aa96362d83fdad1f92f.tar.gz samba-0f630abb3f197a8b672c6aa96362d83fdad1f92f.tar.xz samba-0f630abb3f197a8b672c6aa96362d83fdad1f92f.zip |
s3:vfs_gpfs: make sure we return the correct errno in gpfs2smb_acl()
TALLOC_FREE() could overwrite errno.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/modules/vfs_gpfs.c')
-rw-r--r-- | source3/modules/vfs_gpfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 8f5a19cd602..b3ed3da5cf8 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -608,8 +608,8 @@ static SMB_ACL_T gpfs2smb_acl(const struct gpfs_acl *pacl, TALLOC_CTX *mem_ctx) default: DEBUG(10, ("Got invalid ace_type: %d\n", g_ace->ace_type)); - errno = EINVAL; TALLOC_FREE(result); + errno = EINVAL; return NULL; } |