summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpcclient/samsync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpcclient/samsync.c b/source3/rpcclient/samsync.c
index 46b20b3e12..be9ea2fe5e 100644
--- a/source3/rpcclient/samsync.c
+++ b/source3/rpcclient/samsync.c
@@ -194,8 +194,8 @@ static struct cli_state *init_connection(struct cli_state *cli,
return NULL;
}
- if (!lookup_pdc_name(global_myname, lp_workgroup(), dest_ip,
- dest_host)) {
+ if (!lookup_dc_name(global_myname, lp_workgroup(), dest_ip,
+ dest_host)) {
DEBUG(0, ("Could not lookup up PDC name for domain %s\n",
lp_workgroup()));
return NULL;