From c2b0e8d1d054670d7b52ef3860df27232570a9d8 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=utf8 Content-Transfer-Encoding: 8bit Thanks a *lot* to Günther to send me the relevant traces! Volker Signed-off-by: Günther Deschner Fixes bug #6646 (Winbind authentication issue on 3.2.13/14 and 3.4.0 (was: [Samba] Crazied NTLM_AUTH on samba 3.4.0)). (cherry picked from commit 28674fcda7aaf839fdf5704e4133a0bd3a3f93a2) --- source/libsmb/async_smb.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/libsmb/async_smb.c b/source/libsmb/async_smb.c index a1896e189ca..3418788dc3d 100644 --- a/source/libsmb/async_smb.c +++ b/source/libsmb/async_smb.c @@ -238,6 +238,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; + } + /* * TODO: Handle oplock break requests */ -- 2.11.4.GIT