s3:libsmb: remove unused TALLOC_FREE(subreq) calls in
authorStefan Metzmacher <metze@samba.org>
Tue, 20 Sep 2011 03:00:46 +0000 (05:00 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 28 Sep 2011 00:01:08 +0000 (02:01 +0200)
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Sep 28 02:01:09 CEST 2011 on sn-devel-104

source3/libsmb/cliconnect.c

index d2512ec2956b9e1958316f4cb31b15f426e2c5f7..92c90146e3219148f8761de7cfa49766b5f82594 100644 (file)
@@ -1637,7 +1637,6 @@ static void cli_session_setup_ntlmssp_done(struct tevent_req *subreq)
                        state->cli->server_domain = talloc_strdup(state->cli,
                                                state->ntlmssp_state->server.netbios_domain);
                        if (state->cli->server_domain == NULL) {
-                               TALLOC_FREE(subreq);
                                tevent_req_nterror(req, NT_STATUS_NO_MEMORY);
                                return;
                        }
@@ -1649,11 +1648,9 @@ static void cli_session_setup_ntlmssp_done(struct tevent_req *subreq)
                            state->cli, state->ntlmssp_state->session_key,
                            data_blob_null)
                    && !cli_check_sign_mac(state->cli, inbuf, 1)) {
-                       TALLOC_FREE(subreq);
                        tevent_req_nterror(req, NT_STATUS_ACCESS_DENIED);
                        return;
                }
-               TALLOC_FREE(subreq);
                TALLOC_FREE(state->ntlmssp_state);
                tevent_req_done(req);
                return;
@@ -1696,14 +1693,12 @@ static void cli_session_setup_ntlmssp_done(struct tevent_req *subreq)
 
        if (!NT_STATUS_IS_OK(status)
            && !NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)) {
-               TALLOC_FREE(subreq);
                TALLOC_FREE(state->ntlmssp_state);
                tevent_req_nterror(req, status);
                return;
        }
 
        state->blob_out = spnego_gen_auth(state, blob_out);
-       TALLOC_FREE(subreq);
        if (tevent_req_nomem(state->blob_out.data, req)) {
                return;
        }