mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
s3:winbindd: use better debug messages than 'talloc_strdup failed'
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Apr 5 13:28:42 UTC 2024 on atb-devel-224
This commit is contained in:
parent
72a4d3ad5a
commit
814ae222ca
@ -540,7 +540,8 @@ static bool get_dc_name_via_netlogon(struct winbindd_domain *domain,
|
||||
tmp = talloc_strdup(
|
||||
mem_ctx, domain_info->dc_unc);
|
||||
if (tmp == NULL) {
|
||||
DEBUG(0, ("talloc_strdup failed\n"));
|
||||
DBG_ERR("talloc_strdup failed for dc_unc[%s]\n",
|
||||
domain_info->dc_unc);
|
||||
talloc_destroy(mem_ctx);
|
||||
return false;
|
||||
}
|
||||
@ -548,7 +549,9 @@ static bool get_dc_name_via_netlogon(struct winbindd_domain *domain,
|
||||
domain->alt_name = talloc_strdup(domain,
|
||||
domain_info->domain_name);
|
||||
if (domain->alt_name == NULL) {
|
||||
DEBUG(0, ("talloc_strdup failed\n"));
|
||||
DBG_ERR("talloc_strdup failed for "
|
||||
"domain_info->domain_name[%s]\n",
|
||||
domain_info->domain_name);
|
||||
talloc_destroy(mem_ctx);
|
||||
return false;
|
||||
}
|
||||
@ -557,7 +560,9 @@ static bool get_dc_name_via_netlogon(struct winbindd_domain *domain,
|
||||
domain->forest_name = talloc_strdup(domain,
|
||||
domain_info->forest_name);
|
||||
if (domain->forest_name == NULL) {
|
||||
DEBUG(0, ("talloc_strdup failed\n"));
|
||||
DBG_ERR("talloc_strdup failed for "
|
||||
"domain_info->forest_name[%s]\n",
|
||||
domain_info->forest_name);
|
||||
talloc_destroy(mem_ctx);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user