1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r17085: reuse the existing sec_desc_buf struct

metze
(This used to be commit 22463cbcdd)
This commit is contained in:
Stefan Metzmacher 2006-07-17 09:48:06 +00:00 committed by Gerald (Jerry) Carter
parent 8075ce63fd
commit bca8f2d568
2 changed files with 4 additions and 8 deletions

View File

@ -455,6 +455,7 @@
uint32 current_users;
[string,charset(UTF16)] uint16 *path;
[string,charset(UTF16)] uint16 *password;
/* maybe here is a struct sec_desc_buf following */
uint32 unknown;
[subcontext(4)] security_descriptor *sd;
} srvsvc_NetShareInfo502;
@ -501,14 +502,9 @@
[size_is(count)] srvsvc_NetShareInfo1007 *array;
} srvsvc_NetShareCtr1007;
typedef struct {
[range(0,0x40000),value(ndr_size_security_descriptor(sd,ndr->flags))] uint32 sd_size;
[subcontext(4)] security_descriptor *sd;
} srvsvc_NetShareInfo1501;
typedef struct {
uint32 count;
[size_is(count)] srvsvc_NetShareInfo1501 *array;
[size_is(count)] sec_desc_buf *array;
} srvsvc_NetShareCtr1501;
typedef union {
@ -521,7 +517,7 @@
[case(1005)] srvsvc_NetShareInfo1005 *info1005;
[case(1006)] srvsvc_NetShareInfo1006 *info1006;
[case(1007)] srvsvc_NetShareInfo1007 *info1007;
[case(1501)] srvsvc_NetShareInfo1501 *info1501;
[case(1501)] sec_desc_buf *info1501;
[default] ;
} srvsvc_NetShareInfo;

View File

@ -1891,7 +1891,7 @@ static NTSTATUS set_sharesec(TALLOC_CTX *mem_ctx,
TALLOC_CTX *tmp_ctx;
struct dcerpc_pipe *p;
NTSTATUS status;
struct srvsvc_NetShareInfo1501 i;
struct sec_desc_buf i;
struct srvsvc_NetShareSetInfo r;
uint32_t error = 0;