]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:cli_netlogon: don't change remote_name in rpccli_setup_netlogon_creds_locked()
authorStefan Metzmacher <metze@samba.org>
Wed, 30 Oct 2024 13:33:45 +0000 (13:33 +0000)
committerStefan Metzmacher <metze@samba.org>
Thu, 31 Oct 2024 12:48:41 +0000 (12:48 +0000)
This was missing in commit 628d7b6f2e626c9c530473d06c038dfec9cbd17a.

We should not alter the name to '<UNKNOWN>'!

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/rpc_client/cli_netlogon.c

index f871c573d7d98b10a63d4859f55eae0376b072c1..2c79aa5a4e6daaa2d7e67e8a85a88eb53eb5f49d 100644 (file)
@@ -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 = "<UNKNOWN>";
-               }
-
                DEBUG(5,("%s: %s cached netlogon_creds cli[%s/%s] to %s\n",
                         __FUNCTION__, action,
                         creds->account_name, creds->computer_name,