Changeset 77 for trunk/samba/source/libsmb/cliconnect.c
- Timestamp:
- Sep 30, 2007, 3:42:50 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/source/libsmb/cliconnect.c
r62 r77 7 7 This program is free software; you can redistribute it and/or modify 8 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 2of the License, or9 the Free Software Foundation; either version 3 of the License, or 10 10 (at your option) any later version. 11 11 … … 16 16 17 17 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/>. 20 19 */ 21 20 … … 62 61 const char *workgroup) 63 62 { 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; 66 65 fstring pword; 67 66 char *p; … … 300 299 { 301 300 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; 305 304 NTSTATUS result; 306 305 char *p; … … 335 334 336 335 #ifdef LANMAN_ONLY 337 nt_response = data_blob (NULL, 0);336 nt_response = data_blob_null; 338 337 #else 339 338 nt_response = data_blob(NULL, 24); … … 486 485 static DATA_BLOB cli_session_setup_blob_receive(struct cli_state *cli) 487 486 { 488 DATA_BLOB blob2 = data_blob (NULL, 0);487 DATA_BLOB blob2 = data_blob_null; 489 488 char *p; 490 489 size_t len; … … 535 534 int32 remaining = blob.length; 536 535 int32 cur = 0; 537 DATA_BLOB send_blob = data_blob (NULL, 0);536 DATA_BLOB send_blob = data_blob_null; 538 537 int32 max_blob_size = 0; 539 DATA_BLOB receive_blob = data_blob (NULL, 0);538 DATA_BLOB receive_blob = data_blob_null; 540 539 541 540 if (cli->max_xmit < BASE_SESSSETUP_BLOB_PACKET_SIZE + 1) { … … 555 554 remaining -= max_blob_size; 556 555 } else { 557 DATA_BLOB null_blob = data_blob (NULL, 0);556 DATA_BLOB null_blob = data_blob_null; 558 557 559 558 send_blob.length = remaining; … … 658 657 int turn = 1; 659 658 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; 663 662 664 663 cli_temp_set_signing(cli); … … 717 716 } else if ((turn == 1) && 718 717 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; 720 719 /* the server might give us back two challenges */ 721 720 if (!spnego_parse_challenge(blob, &blob_in, … … 726 725 data_blob_free(&tmp_blob); 727 726 } else { 728 if (!spnego_parse_auth_response(blob, nt_status, 727 if (!spnego_parse_auth_response(blob, nt_status, OID_NTLMSSP, 729 728 &blob_in)) { 730 729 DEBUG(3,("Failed to parse auth response\n")); … … 745 744 DATA_BLOB key = data_blob(ntlmssp_state->session_key.data, 746 745 ntlmssp_state->session_key.length); 747 DATA_BLOB null_blob = data_blob (NULL, 0);746 DATA_BLOB null_blob = data_blob_null; 748 747 BOOL res; 749 748 … … 1850 1849 /* Go looking for workgroups by broadcasting on the local network */ 1851 1850 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))) { 1853 1853 DEBUG(99, ("No master browsers responded\n")); 1854 1854 return False;
Note:
See TracChangeset
for help on using the changeset viewer.