Ignore:
Timestamp:
May 29, 2008, 11:30:31 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.30

File:
1 edited

Legend:

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

    r30 r135  
    4545
    4646/****************************************************************************
    47  Read an smb from a fd ignoring all keepalive packets. Note that the buffer
    48  *MUST* be of size BUFFER_SIZE+SAFETY_MARGIN.
     47 Read an smb from a fd ignoring all keepalive packets.
    4948 The timeout is in milliseconds
    5049
     
    5554****************************************************************************/
    5655
    57 static BOOL client_receive_smb(int fd,char *buffer, unsigned int timeout)
     56static BOOL client_receive_smb(int fd,char *buffer, size_t bufsize, unsigned int timeout)
    5857{
    5958        BOOL ret;
    6059
    6160        for(;;) {
    62                 ret = receive_smb_raw(fd, buffer, timeout);
     61                ret = receive_smb_raw(fd, buffer, bufsize, timeout);
    6362
    6463                if (!ret) {
     
    8988
    9089 again:
    91         ret = client_receive_smb(cli->fd,cli->inbuf,cli->timeout);
     90        ret = client_receive_smb(cli->fd,cli->inbuf, cli->bufsize, cli->timeout);
    9291       
    9392        if (ret) {
Note: See TracChangeset for help on using the changeset viewer.