From: Jeremy Allison Date: Tue, 9 Aug 2016 18:57:20 +0000 (-0700) Subject: libgpo: Correctly use the 'server' parameter after parsing it out of the GPO path. X-Git-Tag: tevent-0.9.30~170 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a8ccc0841184c2df9fc19f8452009b92071c115;p=thirdparty%2Fsamba.git libgpo: Correctly use the 'server' parameter after parsing it out of the GPO path. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12135 Signed-off-by: Jeremy Allison Reviewed-by: Uri Simchoni --- diff --git a/libgpo/gpo_fetch.c b/libgpo/gpo_fetch.c index 97ecd62d9d7..836bc23f2d2 100644 --- a/libgpo/gpo_fetch.c +++ b/libgpo/gpo_fetch.c @@ -166,7 +166,7 @@ NTSTATUS gpo_fetch_files(TALLOC_CTX *mem_ctx, /* for now reuse the existing ds connection */ - result = gpo_connect_server(ads, ads->server.ldap_server, service, &cli); + result = gpo_connect_server(ads, server, service, &cli); NT_STATUS_NOT_OK_RETURN(result); result = gpo_prepare_local_store(mem_ctx, cache_dir, unix_path);