summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_reg.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-11-11 19:22:08 +0000
committerLuke Leighton <lkcl@samba.org>1998-11-11 19:22:08 +0000
commit60a91a1dca12e675e4498062f33ed773ddd5600a (patch)
tree7b828ffbd2c92b29f88238d1f43cce0b5b493953 /source3/rpc_parse/parse_reg.c
parent16a243ec5efe0fed8a6934442e87f57c635e4703 (diff)
downloadsamba-60a91a1dca12e675e4498062f33ed773ddd5600a.tar.gz
samba-60a91a1dca12e675e4498062f33ed773ddd5600a.tar.bz2
samba-60a91a1dca12e675e4498062f33ed773ddd5600a.zip
clearing up security descriptor
(This used to be commit abdc9d790b7d27b70aaf88451f5c82c99c94ca6e)
Diffstat (limited to 'source3/rpc_parse/parse_reg.c')
-rw-r--r--source3/rpc_parse/parse_reg.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/source3/rpc_parse/parse_reg.c b/source3/rpc_parse/parse_reg.c
index fa63717e5b..b650847b80 100644
--- a/source3/rpc_parse/parse_reg.c
+++ b/source3/rpc_parse/parse_reg.c
@@ -553,11 +553,17 @@ void make_reg_q_get_key_sec(REG_Q_GET_KEY_SEC *q_i, POLICY_HND *pol,
q_i->unknown = 0x7;
- q_i->ptr = 1;
+ q_i->ptr = sec_buf != NULL ? 1 : 0;
q_i->data = sec_buf;
- make_buf_hdr(&(q_i->hdr_sec), buf_len, 0);
- make_sec_desc_buf(q_i->data, buf_len, 0);
+ if (sec_buf != NULL)
+ {
+ make_buf_hdr(&(q_i->hdr_sec), buf_len, 0);
+ q_i->data->max_len = buf_len;
+ q_i->data->undoc = 0;
+ q_i->data->len = 0;
+ q_i->data->sec = NULL;
+ }
}
/*******************************************************************
@@ -586,10 +592,11 @@ void reg_io_q_get_key_sec(char *desc, REG_Q_GET_KEY_SEC *r_q, prs_struct *ps, i
}
}
+#if 0
/*******************************************************************
makes a structure.
********************************************************************/
-void make_reg_r_get_key_sec(REG_R_GET_KEY_SEC *r_i, POLICY_HND *pol,
+ void make_reg_r_get_key_sec(REG_R_GET_KEY_SEC *r_i, POLICY_HND *pol,
uint32 buf_len, uint8 *buf,
uint32 status)
{
@@ -601,6 +608,7 @@ void make_reg_r_get_key_sec(REG_R_GET_KEY_SEC *r_i, POLICY_HND *pol,
r_i->status = status; /* 0x0000 0000 or 0x0000 007a */
}
+#endif
/*******************************************************************
reads or writes a structure.