From 0f630abb3f197a8b672c6aa96362d83fdad1f92f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 28 Nov 2012 11:44:15 +0100 Subject: s3:vfs_gpfs: make sure we return the correct errno in gpfs2smb_acl() TALLOC_FREE() could overwrite errno. Signed-off-by: Stefan Metzmacher Reviewed-by: Michael Adam --- source3/modules/vfs_gpfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 8f5a19cd60..b3ed3da5cf 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; } -- cgit