diff options
-rw-r--r-- | source3/lib/winbind_util.c | 7 | ||||
-rw-r--r-- | source3/nsswitch/libwbclient/wbc_util.c | 2 |
2 files changed, 4 insertions, 5 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; diff --git a/source3/nsswitch/libwbclient/wbc_util.c b/source3/nsswitch/libwbclient/wbc_util.c index 2d7cc7bcbd..b0adaad318 100644 --- a/source3/nsswitch/libwbclient/wbc_util.c +++ b/source3/nsswitch/libwbclient/wbc_util.c @@ -39,7 +39,7 @@ wbcErr wbcPing(void) /** @brief Lookup the current status of a trusted domain * * @param domain Domain to query - * @param *info Pointer to returned domain_info struct + * @param *dinfo Pointer to returned domain_info struct * * @return #wbcErr * |