mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r1883: I don't know why this was broken...
tridge: can you please check if this is correct, I have only compiled it, but haven'T run it. metze (This used to be commit d3123c2e7357d8db4dce9e0253ac405318d05c48)
This commit is contained in:
parent
46003a56a8
commit
7d032a9992
@ -84,7 +84,7 @@ NTSTATUS smb_raw_query_secdesc_recv(struct smbcli_request *req,
|
||||
}
|
||||
status = ndr_pull_security_descriptor(ndr, NDR_SCALARS|NDR_BUFFERS, query->out.sd);
|
||||
|
||||
return NT_STATUS_OK;
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
@ -130,12 +130,12 @@ struct smbcli_request *smb_raw_set_secdesc_send(struct smbcli_tree *tree,
|
||||
ndr = ndr_push_init();
|
||||
if (!ndr) return NULL;
|
||||
|
||||
// status = ndr_push_security_descriptor(ndr, set->in.sd);
|
||||
status = ndr_push_security_descriptor(ndr, NDR_SCALARS|NDR_BUFFERS, set->in.sd);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
ndr_push_free(ndr);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
nt.in.data = ndr_push_blob(ndr);
|
||||
|
||||
req = smb_raw_nttrans_send(tree, &nt);
|
||||
|
Loading…
x
Reference in New Issue
Block a user