Changeset 135 for branches/samba-3.0/source/libsmb/clientgen.c
- Timestamp:
- May 29, 2008, 11:30:31 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/libsmb/clientgen.c
r30 r135 45 45 46 46 /**************************************************************************** 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. 49 48 The timeout is in milliseconds 50 49 … … 55 54 ****************************************************************************/ 56 55 57 static BOOL client_receive_smb(int fd,char *buffer, unsigned int timeout)56 static BOOL client_receive_smb(int fd,char *buffer, size_t bufsize, unsigned int timeout) 58 57 { 59 58 BOOL ret; 60 59 61 60 for(;;) { 62 ret = receive_smb_raw(fd, buffer, timeout);61 ret = receive_smb_raw(fd, buffer, bufsize, timeout); 63 62 64 63 if (!ret) { … … 89 88 90 89 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); 92 91 93 92 if (ret) {
Note:
See TracChangeset
for help on using the changeset viewer.