summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-01-08 22:21:39 +0000
committerGerald Carter <jerry@samba.org>2004-01-08 22:21:39 +0000
commit5982f2c17b38ba865371d648976cdb1282cf61e7 (patch)
treeb5527a4f1ba1f089b1c0aca2eacfc4665cc1afc6 /source3/nsswitch
parentbe7b27b78f7f2ea6e2b6251e33f09bd44f23b78f (diff)
downloadsamba-5982f2c17b38ba865371d648976cdb1282cf61e7.tar.gz
samba-5982f2c17b38ba865371d648976cdb1282cf61e7.tar.bz2
samba-5982f2c17b38ba865371d648976cdb1282cf61e7.zip
fix segfault when sid_ptr == 0 in DsEnumDomainTrusts() reply
(This used to be commit 36d985a75faa5ebda1c8c7de1e3ab5d7a51a9c10)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/nsswitch/winbindd_util.c b/source3/nsswitch/winbindd_util.c
index f29ed37650..4cc43e85d6 100644
--- a/source3/nsswitch/winbindd_util.c
+++ b/source3/nsswitch/winbindd_util.c
@@ -107,8 +107,7 @@ static struct winbindd_domain *add_trusted_domain(const char *domain_name, const
/* Create new domain entry */
- if ((domain = (struct winbindd_domain *)
- malloc(sizeof(*domain))) == NULL)
+ if ((domain = (struct winbindd_domain *)malloc(sizeof(*domain))) == NULL)
return NULL;
/* Fill in fields */
@@ -146,7 +145,7 @@ static struct winbindd_domain *add_trusted_domain(const char *domain_name, const
DEBUG(1,("Added domain %s %s %s\n",
domain->name, domain->alt_name,
- sid?sid_string_static(&domain->sid):""));
+ &domain->sid?sid_string_static(&domain->sid):""));
return domain;
}