summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_samr.c
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/parse_samr.c
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/parse_samr.c')
-rw-r--r--source3/rpc_parse/parse_samr.c4
1 files changed, 2 insertions, 2 deletions
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;