Ignore:
Timestamp:
May 23, 2008, 6:56:41 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.29

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/libsmb/clitrans.c

    r124 r134  
    9696        }
    9797
     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
    98102        if (this_ldata < ldata || this_lparam < lparam) {
    99103                /* receive interim response */
    100104                if (!cli_receive_smb(cli) || cli_is_error(cli)) {
     105                        client_set_trans_sign_state_off(cli, mid);
    101106                        return(False);
    102107                }
     
    108113                        this_lparam = MIN(lparam-tot_param,cli->max_xmit - 500); /* hack */
    109114                        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);
    110118
    111119                        set_message(cli->outbuf,trans==SMBtrans?8:9,0,True);
     
    140148                        show_msg(cli->outbuf);
    141149                        if (!cli_send_smb(cli)) {
     150                                client_set_trans_sign_state_off(cli, mid);
    142151                                return False;
    143152                        }
     
    318327  out:
    319328
     329        client_set_trans_sign_state_off(cli, SVAL(cli->inbuf,smb_mid));
    320330        return ret;
    321331}
     
    385395        }       
    386396
     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
    387401        if (this_ldata < ldata || this_lparam < lparam) {
    388402                /* receive interim response */
    389403                if (!cli_receive_smb(cli) || cli_is_error(cli)) {
     404                        client_set_trans_sign_state_off(cli, mid);
    390405                        return(False);
    391406                }
     
    429444
    430445                        if (!cli_send_smb(cli)) {
     446                                client_set_trans_sign_state_off(cli, mid);
    431447                                return False;
    432448                        }
     
    628644  out:
    629645
     646        client_set_trans_sign_state_off(cli, SVAL(cli->inbuf,smb_mid));
    630647        return ret;
    631648}
Note: See TracChangeset for help on using the changeset viewer.