summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libnet/libnet_rpc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/libnet/libnet_rpc.c b/source4/libnet/libnet_rpc.c
index 7cee7681e8..4896236e68 100644
--- a/source4/libnet/libnet_rpc.c
+++ b/source4/libnet/libnet_rpc.c
@@ -26,6 +26,11 @@ static NTSTATUS libnet_find_pdc_generic(struct libnet_context *ctx, TALLOC_CTX *
BOOL ret;
struct in_addr ip;
+ if (is_ipaddress(r->generic.in.domain_name)) {
+ r->generic.out.pdc_name = r->generic.in.domain_name;
+ return NT_STATUS_OK;
+ }
+
ret = get_pdc_ip(mem_ctx, r->generic.in.domain_name, &ip);
if (!ret) {
/* fallback to a workstation name */