summaryrefslogtreecommitdiff
path: root/source3/lib/winbind_util.c
diff options
context:
space:
mode:
authorGerald (Jerry) Carter <jerry@samba.org>2007-12-21 13:47:45 -0600
committerGerald (Jerry) Carter <jerry@samba.org>2007-12-21 13:49:19 -0600
commit387288e9501cd211500b1c5cf1bc0a339017a4a4 (patch)
treeec127499f63d3942cc7489b667734f37d7e32bcc /source3/lib/winbind_util.c
parent59ce7650f24eb7c35b8d3ee9f830711a4af8f8e9 (diff)
downloadsamba-387288e9501cd211500b1c5cf1bc0a339017a4a4.tar.gz
samba-387288e9501cd211500b1c5cf1bc0a339017a4a4.tar.bz2
samba-387288e9501cd211500b1c5cf1bc0a339017a4a4.zip
Compile fix: Correct use of wbcDomainInfo() after function signature change.
Also fixes a doxygen warngin about an undocumented parameter in the same function. (This used to be commit 290ab64e9e5fb2a28e14a5f344f22119d5304563)
Diffstat (limited to 'source3/lib/winbind_util.c')
-rw-r--r--source3/lib/winbind_util.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/lib/winbind_util.c b/source3/lib/winbind_util.c
index 4983b9ced0..f4e7ab19e8 100644
--- a/source3/lib/winbind_util.c
+++ b/source3/lib/winbind_util.c
@@ -166,13 +166,12 @@ bool winbind_gid_to_sid(DOM_SID *sid, gid_t gid)
wbcErr wb_is_trusted_domain(const char *domain)
{
wbcErr result;
- struct wbcDomainInfo info;
+ struct wbcDomainInfo *info = NULL;
result = wbcDomainInfo(domain, &info);
- if (result == WBC_ERR_SUCCESS) {
- SAFE_FREE(info.short_name);
- SAFE_FREE(info.dns_name);
+ if (WBC_ERROR_IS_OK(result)) {
+ wbcFreeMemory(info);
}
return result;