From 0eab4311946c312795ec5c03c25a340ef0bfc624 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 27 Mar 2007 21:55:43 +0000 Subject: r21992: Fix keepalive processing when encryption turned on. Jeremy. (This used to be commit 8f113ad1918dcd2746ec527ceb79a2a7baa1d415) --- source3/client/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/client') 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; -- cgit