Slightly simplify cli_session_setup_ntlmssp
authorVolker Lendecke <vl@samba.org>
Sun, 30 Nov 2008 12:49:14 +0000 (13:49 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 7 Dec 2008 20:30:35 +0000 (21:30 +0100)
Remove three pointless variables

source3/libsmb/cliconnect.c

index b063475f4ecf5b1887f5d5b11424b253e3541abc..d33775fbb8dc39f45c0f722057fa5e4b20a80321 100644 (file)
@@ -748,19 +748,11 @@ static NTSTATUS cli_session_setup_ntlmssp(struct cli_state *cli, const char *use
 
        if (NT_STATUS_IS_OK(nt_status)) {
 
-               DATA_BLOB key = data_blob(ntlmssp_state->session_key.data,
-                                         ntlmssp_state->session_key.length);
-               DATA_BLOB null_blob = data_blob_null;
-               bool res;
-
                fstrcpy(cli->server_domain, ntlmssp_state->server_domain);
                cli_set_session_key(cli, ntlmssp_state->session_key);
 
-               res = cli_simple_set_signing(cli, key, null_blob);
-
-               data_blob_free(&key);
-
-               if (res) {
+               if (cli_simple_set_signing(
+                           cli, ntlmssp_state->session_key, data_blob_null)) {
 
                        /* 'resign' the last message, so we get the right sequence numbers
                           for checking the first reply from the server */