From: Andrew Bartlett Date: Sun, 4 Mar 2018 09:57:22 +0000 (+1300) Subject: s3-libnet: move rpc_join label into HAVE_ADS block with only caller X-Git-Tag: talloc-2.1.13~285 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef35fbfc8ca3f8583507c3b55cab1304290a204d;p=thirdparty%2Fsamba.git s3-libnet: move rpc_join label into HAVE_ADS block with only caller Signed-off-by: Andrew Bartlett Reviewed-by: Andreas Schneider --- diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c index 5db2ca09ccc..bbe604b729e 100644 --- a/source3/libnet/libnet_join.c +++ b/source3/libnet/libnet_join.c @@ -2665,9 +2665,10 @@ static WERROR libnet_DomainJoin(TALLOC_CTX *mem_ctx, DEBUG(5, ("failed to precreate account in ou %s: %s", r->in.account_ou, ads_errstr(ads_status))); } + rpc_join: + #endif /* HAVE_ADS */ - rpc_join: if ((r->in.join_flags & WKSSVC_JOIN_FLAGS_JOIN_UNSECURE) && (r->in.join_flags & WKSSVC_JOIN_FLAGS_MACHINE_PWD_PASSED)) { status = libnet_join_joindomain_rpc_unsecure(mem_ctx, r, cli);