git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3eb78c
)
s3:vfs_gpfs: make sure we return the correct errno in gpfs2smb_acl()
author
Stefan Metzmacher
<metze@samba.org>
Wed, 28 Nov 2012 10:44:15 +0000
(11:44 +0100)
committer
Michael Adam
<obnox@samba.org>
Wed, 28 Nov 2012 11:22:10 +0000
(12:22 +0100)
TALLOC_FREE() could overwrite errno.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/modules/vfs_gpfs.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_gpfs.c
b/source3/modules/vfs_gpfs.c
index 8f5a19cd602b551661a2aa35adc674860a73c67e..b3ed3da5cf8c49545e5fdfe6fecb1926afcf8268 100644
(file)
--- 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;
}