Ignore:
Timestamp:
Sep 30, 2007, 3:42:50 AM (18 years ago)
Author:
Paul Smedley
Message:

Update trunk to 3.2.0pre1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/libsmb/cliconnect.c

    r62 r77  
    77   This program is free software; you can redistribute it and/or modify
    88   it under the terms of the GNU General Public License as published by
    9    the Free Software Foundation; either version 2 of the License, or
     9   the Free Software Foundation; either version 3 of the License, or
    1010   (at your option) any later version.
    1111   
     
    1616   
    1717   You should have received a copy of the GNU General Public License
    18    along with this program; if not, write to the Free Software
    19    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
     18   along with this program.  If not, see <http://www.gnu.org/licenses/>.
    2019*/
    2120
     
    6261                                          const char *workgroup)
    6362{
    64         DATA_BLOB session_key = data_blob(NULL, 0);
    65         DATA_BLOB lm_response = data_blob(NULL, 0);
     63        DATA_BLOB session_key = data_blob_null;
     64        DATA_BLOB lm_response = data_blob_null;
    6665        fstring pword;
    6766        char *p;
     
    300299{
    301300        uint32 capabilities = cli_session_setup_capabilities(cli);
    302         DATA_BLOB lm_response = data_blob(NULL, 0);
    303         DATA_BLOB nt_response = data_blob(NULL, 0);
    304         DATA_BLOB session_key = data_blob(NULL, 0);
     301        DATA_BLOB lm_response = data_blob_null;
     302        DATA_BLOB nt_response = data_blob_null;
     303        DATA_BLOB session_key = data_blob_null;
    305304        NTSTATUS result;
    306305        char *p;
     
    335334
    336335#ifdef LANMAN_ONLY
    337                         nt_response = data_blob(NULL, 0);
     336                        nt_response = data_blob_null;
    338337#else
    339338                        nt_response = data_blob(NULL, 24);
     
    486485static DATA_BLOB cli_session_setup_blob_receive(struct cli_state *cli)
    487486{
    488         DATA_BLOB blob2 = data_blob(NULL, 0);
     487        DATA_BLOB blob2 = data_blob_null;
    489488        char *p;
    490489        size_t len;
     
    535534        int32 remaining = blob.length;
    536535        int32 cur = 0;
    537         DATA_BLOB send_blob = data_blob(NULL, 0);
     536        DATA_BLOB send_blob = data_blob_null;
    538537        int32 max_blob_size = 0;
    539         DATA_BLOB receive_blob = data_blob(NULL, 0);
     538        DATA_BLOB receive_blob = data_blob_null;
    540539
    541540        if (cli->max_xmit < BASE_SESSSETUP_BLOB_PACKET_SIZE + 1) {
     
    555554                        remaining -= max_blob_size;
    556555                } else {
    557                         DATA_BLOB null_blob = data_blob(NULL, 0);
     556                        DATA_BLOB null_blob = data_blob_null;
    558557
    559558                        send_blob.length = remaining;
     
    658657        int turn = 1;
    659658        DATA_BLOB msg1;
    660         DATA_BLOB blob = data_blob(NULL, 0);
    661         DATA_BLOB blob_in = data_blob(NULL, 0);
    662         DATA_BLOB blob_out = data_blob(NULL, 0);
     659        DATA_BLOB blob = data_blob_null;
     660        DATA_BLOB blob_in = data_blob_null;
     661        DATA_BLOB blob_out = data_blob_null;
    663662
    664663        cli_temp_set_signing(cli);
     
    717716                } else if ((turn == 1) &&
    718717                           NT_STATUS_EQUAL(nt_status, NT_STATUS_MORE_PROCESSING_REQUIRED)) {
    719                         DATA_BLOB tmp_blob = data_blob(NULL, 0);
     718                        DATA_BLOB tmp_blob = data_blob_null;
    720719                        /* the server might give us back two challenges */
    721720                        if (!spnego_parse_challenge(blob, &blob_in,
     
    726725                        data_blob_free(&tmp_blob);
    727726                } else {
    728                         if (!spnego_parse_auth_response(blob, nt_status,
     727                        if (!spnego_parse_auth_response(blob, nt_status, OID_NTLMSSP,
    729728                                                        &blob_in)) {
    730729                                DEBUG(3,("Failed to parse auth response\n"));
     
    745744                DATA_BLOB key = data_blob(ntlmssp_state->session_key.data,
    746745                                          ntlmssp_state->session_key.length);
    747                 DATA_BLOB null_blob = data_blob(NULL, 0);
     746                DATA_BLOB null_blob = data_blob_null;
    748747                BOOL res;
    749748
     
    18501849        /* Go looking for workgroups by broadcasting on the local network */
    18511850
    1852         if (!name_resolve_bcast(MSBROWSE, 1, &ip_list, &count)) {
     1851        if (!NT_STATUS_IS_OK(name_resolve_bcast(MSBROWSE, 1, &ip_list,
     1852                                                &count))) {
    18531853                DEBUG(99, ("No master browsers responded\n"));
    18541854                return False;
Note: See TracChangeset for help on using the changeset viewer.