Ignore:
Timestamp:
May 26, 2009, 9:44:50 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/client/client.c

    r204 r228  
    43434343}
    43444344
     4345static bool finished;
     4346
    43454347/****************************************************************************
    43464348 Make sure we swallow keepalives during idle time.
     
    43894391                                  "the connection\n"));
    43904392
     4393                        finished = true;
     4394                        smb_readline_done();
    43914395                        if (NT_STATUS_EQUAL(status, NT_STATUS_END_OF_FILE)) {
    43924396                                set_smb_read_error(&cli->smb_rw_error,
     
    44174421                unsigned char garbage[16];
    44184422                memset(garbage, 0xf0, sizeof(garbage));
    4419                 cli_echo(cli, 1, garbage, sizeof(garbage));
     4423                if (!cli_echo(cli, 1, garbage, sizeof(garbage))) {
     4424                        DEBUG(0, ("SMBecho failed. Maybe server has closed "
     4425                                  "the connection\n"));
     4426                        smb_readline_done();
     4427                        finished = true;
     4428                }
    44204429        }
    44214430}
     
    44294438        int rc = 0;
    44304439
    4431         while (1) {
     4440        while (!finished) {
    44324441                TALLOC_CTX *frame = talloc_stackframe();
    44334442                char *tok = NULL;
     
    46064615        fstrcat(server_name, name_type_hex);
    46074616
    4608         zero_addr(&ss);
     4617        zero_sockaddr(&ss);
    46094618        if (have_ip)
    46104619                ss = dest_ss;
Note: See TracChangeset for help on using the changeset viewer.