diff options
Diffstat (limited to 'source3/client/client.c')
-rw-r--r-- | source3/client/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 481fca8f84..b32e5baae6 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -3666,12 +3666,12 @@ static void readline_callback(void) timeout.tv_usec = 0; sys_select_intr(cli->fd+1,&fds,NULL,NULL,&timeout); - /* We deliberately use receive_smb instead of + /* We deliberately use cli_receive_smb_return_keepalive instead of client_receive_smb as we want to receive session keepalives and then drop them here. */ if (FD_ISSET(cli->fd,&fds)) { - if (!receive_smb(cli->fd,cli->inbuf,0)) { + if (!cli_receive_smb_return_keepalive(cli)) { DEBUG(0, ("Read from server failed, maybe it closed the " "connection\n")); return; |