summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-02-03 00:49:24 +0000
committerLuke Leighton <lkcl@samba.org>1999-02-03 00:49:24 +0000
commit1153f00f889e5bb310e895d319eed75bc93deef4 (patch)
tree992b761fc48443b56324b1403708d4d0ff22c813 /source3/rpc_parse
parentfe609d810e145d5491968fee5d691d6eee41e152 (diff)
downloadsamba-1153f00f889e5bb310e895d319eed75bc93deef4.tar.gz
samba-1153f00f889e5bb310e895d319eed75bc93deef4.tar.bz2
samba-1153f00f889e5bb310e895d319eed75bc93deef4.zip
cache unix groups so that two-level getgrent calls don't occur.
(This used to be commit f7dfa55a2e191ae780d399026bce48f68cda4bf0)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_reg.c5
-rw-r--r--source3/rpc_parse/parse_samr.c4
2 files changed, 4 insertions, 5 deletions
diff --git a/source3/rpc_parse/parse_reg.c b/source3/rpc_parse/parse_reg.c
index 3365a68b3d..b0086f402a 100644
--- a/source3/rpc_parse/parse_reg.c
+++ b/source3/rpc_parse/parse_reg.c
@@ -766,7 +766,6 @@ creates a structure.
********************************************************************/
void make_reg_r_info(REG_R_INFO *r_r,
uint32 level, char *os_type,
- uint32 unknown_0, uint32 unknown_1,
uint32 status)
{
uint8 buf[512];
@@ -779,10 +778,10 @@ void make_reg_r_info(REG_R_INFO *r_r,
make_buffer2(&(r_r->uni_type), buf, len*2);
r_r->ptr2 = 1;
- r_r->unknown_0 = unknown_0;
+ r_r->unknown_0 = len*2;
r_r->ptr3 = 1;
- r_r->unknown_1 = unknown_1;
+ r_r->unknown_1 = len*2;
r_r->status = status;
}
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c
index 1fcb57c435..cadeffdfd0 100644
--- a/source3/rpc_parse/parse_samr.c
+++ b/source3/rpc_parse/parse_samr.c
@@ -1232,7 +1232,7 @@ void make_samr_r_query_dispinfo(SAMR_R_QUERY_DISPINFO *r_u,
{
if (r_u == NULL) return;
- DEBUG(5,("make_samr_r_query_dispinfo\n"));
+ DEBUG(5,("make_samr_r_query_dispinfo: level %d\n", switch_level));
if (status == 0x0)
{
@@ -1910,7 +1910,7 @@ void make_samr_r_query_groupmem(SAMR_R_QUERY_GROUPMEM *r_u,
if (status == 0x0)
{
- r_u->ptr = (num_entries != 0) ? 1 : 0;
+ r_u->ptr = 1;
r_u->num_entries = num_entries;
r_u->ptr_attrs = attr != NULL ? 1 : 0;