1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

Fixed display of uninitialised buffer in debug.

Get list of trusted domains if we haven't fetched them yet.
(This used to be commit a7ef2d20b1)
This commit is contained in:
Tim Potter 2001-11-15 03:28:24 +00:00
parent 17ce9c5281
commit 0d252203a7

View File

@ -168,8 +168,8 @@ static BOOL fill_grent_mem(struct winbindd_domain *domain,
*gr_mem = buf;
*gr_mem_len = buf_len;
DEBUG(10, ("fill_grent_mem(): num_mem = %d, len = %d, mem = %s\n", *num_gr_mem,
buf_len, buf));
DEBUG(10, ("fill_grent_mem(): num_mem = %d, len = %d, mem = %s\n",
*num_gr_mem, buf_len, num_gr_mem ? buf : "NULL"));
result = True;
@ -393,6 +393,9 @@ enum winbindd_result winbindd_setgrent(struct winbindd_cli_state *state)
/* Create sam pipes for each domain we know about */
if (domain_list == NULL)
get_domain_info();
for (tmp = domain_list; tmp != NULL; tmp = tmp->next) {
struct getent_state *domain_state;
@ -757,6 +760,9 @@ enum winbindd_result winbindd_list_groups(struct winbindd_cli_state *state)
ZERO_STRUCT(groups);
if (domain_list == NULL)
get_domain_info();
for (domain = domain_list; domain; domain = domain->next) {
/* Skip domains other than WINBINDD_DOMAIN environment