summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/cli_srvsvc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/librpc/gen_ndr/cli_srvsvc.c')
-rw-r--r--source3/librpc/gen_ndr/cli_srvsvc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/librpc/gen_ndr/cli_srvsvc.c b/source3/librpc/gen_ndr/cli_srvsvc.c
index 02c11aba37..2b61fb858e 100644
--- a/source3/librpc/gen_ndr/cli_srvsvc.c
+++ b/source3/librpc/gen_ndr/cli_srvsvc.c
@@ -2040,7 +2040,7 @@ NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli,
const char *share,
const char *file,
uint32_t securityinformation,
- struct sec_desc_buf *sd_buf,
+ struct sec_desc_buf **sd_buf,
WERROR *werror)
{
struct srvsvc_NetGetFileSecurity r;
@@ -2076,9 +2076,7 @@ NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli,
}
/* Return variables */
- if (sd_buf && r.out.sd_buf) {
- *sd_buf = *r.out.sd_buf;
- }
+ *sd_buf = *r.out.sd_buf;
/* Return result */
if (werror) {
@@ -2094,7 +2092,7 @@ NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli,
const char *share,
const char *file,
uint32_t securityinformation,
- struct sec_desc_buf sd_buf,
+ struct sec_desc_buf *sd_buf,
WERROR *werror)
{
struct srvsvc_NetSetFileSecurity r;