summaryrefslogtreecommitdiffstats
path: root/source/libsmb/async_smb.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-09-09 12:24:08 +0200
committerKarolin Seeger <kseeger@samba.org>2009-10-07 08:54:48 +0200
commitc2b0e8d1d054670d7b52ef3860df27232570a9d8 (patch)
treed207052bd595f3e58f0570774a5c4155fca4ad35 /source/libsmb/async_smb.c
parent42678a945516eb7e61723eb98df0047d3413cdea (diff)
downloadsamba-c2b0e8d1d054670d7b52ef3860df27232570a9d8.tar.gz
samba-c2b0e8d1d054670d7b52ef3860df27232570a9d8.tar.xz
samba-c2b0e8d1d054670d7b52ef3860df27232570a9d8.zip
s3:libsmb: Correctly chew keepalive packets
Thanks a *lot* to Günther to send me the relevant traces! Volker Signed-off-by: Günther Deschner <gd@samba.org> 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)
Diffstat (limited to 'source/libsmb/async_smb.c')
-rw-r--r--source/libsmb/async_smb.c6
1 files changed, 6 insertions, 0 deletions
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
*/