From 0274fcad86dc57d6304933bfa7860b561b0ce8e7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 9 Sep 2009 12:24:08 +0200 Subject: [PATCH] s3:libsmb: Correctly chew keepalive packets MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Thanks a *lot* to Günther to send me the relevant traces! Volker Signed-off-by: Günther Deschner --- source3/libsmb/async_smb.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c index 066ac7b..07d832e 100644 --- a/source3/libsmb/async_smb.c +++ b/source3/libsmb/async_smb.c @@ -923,6 +923,12 @@ static void handle_incoming_pdu(struct cli_state *cli) } } + if ((raw_pdu_len == 4) && (CVAL(pdu, 0) == SMBkeepalive)) { + DEBUG(10, ("Got keepalive\n")); + TALLOC_FREE(pdu); + return; + } + status = validate_smb_crypto(cli, pdu); if (!NT_STATUS_IS_OK(status)) { goto invalidate_requests; -- 1.6.2.5