From: Stefan Metzmacher Date: Wed, 30 Oct 2024 13:33:45 +0000 (+0000) Subject: s3:cli_netlogon: don't change remote_name in rpccli_setup_netlogon_creds_locked() X-Git-Tag: tdb-1.4.13~759 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=923df3c3f53fc5998f6535f7930a29208ced282d;p=thirdparty%2Fsamba.git s3:cli_netlogon: don't change remote_name in rpccli_setup_netlogon_creds_locked() This was missing in commit 628d7b6f2e626c9c530473d06c038dfec9cbd17a. We should not alter the name to ''! Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c index f871c573d7d..2c79aa5a4e6 100644 --- a/source3/rpc_client/cli_netlogon.c +++ b/source3/rpc_client/cli_netlogon.c @@ -181,12 +181,6 @@ static NTSTATUS rpccli_setup_netlogon_creds_locked( action = "overwrite"; } - if (cli != NULL) { - remote_name = smbXcli_conn_remote_name(cli->conn); - } else { - remote_name = ""; - } - DEBUG(5,("%s: %s cached netlogon_creds cli[%s/%s] to %s\n", __FUNCTION__, action, creds->account_name, creds->computer_name,