~zulcss/ubuntu/lucid/likewise-open/likewise-open-sru

« back to all changes in this revision

Viewing changes to samba/source/libsmb/clitrans.c

  • Committer: Bazaar Package Importer
  • Author(s): Rick Clark
  • Date: 2008-08-27 08:56:20 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080827085620-5q0f58b9qtog9myq
Tags: 4.1.0.2956-0ubuntu1
* missing-likewise-logo.diff: removed
* fixed copyright notice
* updated Standards-Version to 3.8.0
* removed path from command in prerm
* removed stop in S runlevel

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
                return False;
95
95
        }
96
96
 
 
97
        /* Note we're in a trans state. Save the sequence
 
98
         * numbers for replies. */
 
99
        client_set_trans_sign_state_on(cli, mid);
 
100
 
97
101
        if (this_ldata < ldata || this_lparam < lparam) {
98
102
                /* receive interim response */
99
103
                if (!cli_receive_smb(cli) || cli_is_error(cli)) {
 
104
                        client_set_trans_sign_state_off(cli, mid);
100
105
                        return(False);
101
106
                }
102
107
 
107
112
                        this_lparam = MIN(lparam-tot_param,cli->max_xmit - 500); /* hack */
108
113
                        this_ldata = MIN(ldata-tot_data,cli->max_xmit - (500+this_lparam));
109
114
 
 
115
                        client_set_trans_sign_state_off(cli, mid);
 
116
                        client_set_trans_sign_state_on(cli, mid);
 
117
 
110
118
                        cli_set_message(cli->outbuf,trans==SMBtrans?8:9,0,True);
111
119
                        SCVAL(cli->outbuf,smb_com,(trans==SMBtrans ? SMBtranss : SMBtranss2));
112
120
 
138
146
 
139
147
                        show_msg(cli->outbuf);
140
148
                        if (!cli_send_smb(cli)) {
 
149
                                client_set_trans_sign_state_off(cli, mid);
141
150
                                return False;
142
151
                        }
143
152
 
344
353
                }
345
354
        }
346
355
 
 
356
        client_set_trans_sign_state_off(cli, SVAL(cli->inbuf,smb_mid));
347
357
        return ret;
348
358
}
349
359
 
411
421
                return False;
412
422
        }
413
423
 
 
424
        /* Note we're in a trans state. Save the sequence
 
425
         * numbers for replies. */
 
426
        client_set_trans_sign_state_on(cli, mid);
 
427
 
414
428
        if (this_ldata < ldata || this_lparam < lparam) {
415
429
                /* receive interim response */
416
430
                if (!cli_receive_smb(cli) || cli_is_error(cli)) {
 
431
                        client_set_trans_sign_state_off(cli, mid);
417
432
                        return(False);
418
433
                }
419
434
 
455
470
                        show_msg(cli->outbuf);
456
471
 
457
472
                        if (!cli_send_smb(cli)) {
 
473
                                client_set_trans_sign_state_off(cli, mid);
458
474
                                return False;
459
475
                        }
460
476
 
682
698
                }
683
699
        }
684
700
 
 
701
        client_set_trans_sign_state_off(cli, SVAL(cli->inbuf,smb_mid));
685
702
        return ret;
686
703
}