summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-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;