summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-07-23 07:21:52 +0000
committerTim Potter <tpot@samba.org>2001-07-23 07:21:52 +0000
commit881d72acde9950897614ff0d636d46a34db7c253 (patch)
treeed8d7314a8a8685e366cb428227deb60a181a297
parent516eeb0b792d313ff4f42959a2f63140f4315c80 (diff)
downloadsamba-881d72acde9950897614ff0d636d46a34db7c253.tar.gz
samba-881d72acde9950897614ff0d636d46a34db7c253.tar.bz2
samba-881d72acde9950897614ff0d636d46a34db7c253.zip
In wb_samr_query_dispinfo() pass back the 32-bit status code from
cli_samr_query_dispinfo(). (This used to be commit d5f12bc53074d574a503e7183887fdcec9bb9dd4)
-rw-r--r--source3/nsswitch/winbindd_glue.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source3/nsswitch/winbindd_glue.c b/source3/nsswitch/winbindd_glue.c
index 93ba2703a5..28ccfb2f03 100644
--- a/source3/nsswitch/winbindd_glue.c
+++ b/source3/nsswitch/winbindd_glue.c
@@ -434,15 +434,15 @@ BOOL wb_samr_query_dom_info(CLI_POLICY_HND *pol, uint16 switch_value,
return (ret == NT_STATUS_NOPROBLEMO);
}
-BOOL wb_samr_query_dispinfo(CLI_POLICY_HND *pol, uint32 *start_ndx,
- uint16 info_level, uint32 *num_entries,
- SAM_DISPINFO_CTR *ctr)
-{
- uint32 ret;
-
- ret = cli_samr_query_dispinfo(pol->cli, pol->mem_ctx,
- &pol->handle, start_ndx, info_level,
- num_entries, 0xffff, ctr);
+/* Unlike all the others, the status code of this function is actually used
+ by winbindd. */
- return (ret == NT_STATUS_NOPROBLEMO);
+uint32 wb_samr_query_dispinfo(CLI_POLICY_HND *pol, uint32 *start_ndx,
+ uint16 info_level, uint32 *num_entries,
+ SAM_DISPINFO_CTR *ctr)
+{
+ return cli_samr_query_dispinfo(pol->cli, pol->mem_ctx,
+ &pol->handle, start_ndx,
+ info_level, num_entries,
+ 0xffff, ctr);
}