1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

rpc_server:srvsvc Remove psd variable that was no longer set by SMB_VFS_FGET_NT_ACL

This fixes up an error introduced by c8ade07760.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Oct 11 07:53:36 CEST 2012 on sn-devel-104
This commit is contained in:
Andrew Bartlett 2012-10-11 15:08:25 +11:00
parent 0f435a7adc
commit 957f9fa3ff

View File

@ -2106,7 +2106,6 @@ WERROR _srvsvc_NetGetFileSecurity(struct pipes_struct *p,
struct srvsvc_NetGetFileSecurity *r)
{
struct smb_filename *smb_fname = NULL;
struct security_descriptor *psd = NULL;
size_t sd_size;
char *servicename = NULL;
SMB_STRUCT_STAT st;
@ -2204,11 +2203,11 @@ WERROR _srvsvc_NetGetFileSecurity(struct pipes_struct *p,
goto error_exit;
}
if (psd && psd->dacl) {
psd->dacl->revision = NT4_ACL_REVISION;
if (sd_buf->sd->dacl) {
sd_buf->sd->dacl->revision = NT4_ACL_REVISION;
}
sd_size = ndr_size_security_descriptor(psd, 0);
sd_size = ndr_size_security_descriptor(sd_buf->sd, 0);
sd_buf->sd_size = sd_size;
@ -2238,7 +2237,6 @@ error_exit:
done:
TALLOC_FREE(psd);
TALLOC_FREE(smb_fname);
return werr;