diff options
Diffstat (limited to 'nsswitch')
-rw-r--r-- | nsswitch/libwbclient/wbc_util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nsswitch/libwbclient/wbc_util.c b/nsswitch/libwbclient/wbc_util.c index 24b5922c59..16828ae5df 100644 --- a/nsswitch/libwbclient/wbc_util.c +++ b/nsswitch/libwbclient/wbc_util.c @@ -486,7 +486,8 @@ wbcErr wbcLookupDomainController(const char *domain, ZERO_STRUCT(request); ZERO_STRUCT(response); - strncpy(request.domain_name, domain, sizeof(request.domain_name)-1); + strncpy(request.data.dsgetdcname.domain_name, domain, + sizeof(request.data.dsgetdcname.domain_name)-1); request.flags = flags; @@ -500,7 +501,7 @@ wbcErr wbcLookupDomainController(const char *domain, &response); BAIL_ON_WBC_ERROR(wbc_status); - dc->dc_name = talloc_strdup(dc, response.data.dc_name); + dc->dc_name = talloc_strdup(dc, response.data.dsgetdcname.dc_unc); BAIL_ON_PTR_ERROR(dc->dc_name, wbc_status); *dc_info = dc; |