s3-libnet: move rpc_join label into HAVE_ADS block with only caller
authorAndrew Bartlett <abartlet@samba.org>
Sun, 4 Mar 2018 09:57:22 +0000 (22:57 +1300)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 22 Mar 2018 07:00:25 +0000 (08:00 +0100)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libnet/libnet_join.c

index 5db2ca09ccc3e02da9bd75bdbb210d320c077a53..bbe604b729ee2688fe9ec076f9ae859714712bd3 100644 (file)
@@ -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);