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;
/** @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
*