Changeset 134 for branches/samba-3.0/source/libsmb/clitrans.c
- Timestamp:
- May 23, 2008, 6:56:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/libsmb/clitrans.c
r124 r134 96 96 } 97 97 98 /* Note we're in a trans state. Save the sequence 99 * numbers for replies. */ 100 client_set_trans_sign_state_on(cli, mid); 101 98 102 if (this_ldata < ldata || this_lparam < lparam) { 99 103 /* receive interim response */ 100 104 if (!cli_receive_smb(cli) || cli_is_error(cli)) { 105 client_set_trans_sign_state_off(cli, mid); 101 106 return(False); 102 107 } … … 108 113 this_lparam = MIN(lparam-tot_param,cli->max_xmit - 500); /* hack */ 109 114 this_ldata = MIN(ldata-tot_data,cli->max_xmit - (500+this_lparam)); 115 116 client_set_trans_sign_state_off(cli, mid); 117 client_set_trans_sign_state_on(cli, mid); 110 118 111 119 set_message(cli->outbuf,trans==SMBtrans?8:9,0,True); … … 140 148 show_msg(cli->outbuf); 141 149 if (!cli_send_smb(cli)) { 150 client_set_trans_sign_state_off(cli, mid); 142 151 return False; 143 152 } … … 318 327 out: 319 328 329 client_set_trans_sign_state_off(cli, SVAL(cli->inbuf,smb_mid)); 320 330 return ret; 321 331 } … … 385 395 } 386 396 397 /* Note we're in a trans state. Save the sequence 398 * numbers for replies. */ 399 client_set_trans_sign_state_on(cli, mid); 400 387 401 if (this_ldata < ldata || this_lparam < lparam) { 388 402 /* receive interim response */ 389 403 if (!cli_receive_smb(cli) || cli_is_error(cli)) { 404 client_set_trans_sign_state_off(cli, mid); 390 405 return(False); 391 406 } … … 429 444 430 445 if (!cli_send_smb(cli)) { 446 client_set_trans_sign_state_off(cli, mid); 431 447 return False; 432 448 } … … 628 644 out: 629 645 646 client_set_trans_sign_state_off(cli, SVAL(cli->inbuf,smb_mid)); 630 647 return ret; 631 648 }
Note:
See TracChangeset
for help on using the changeset viewer.