From: Volker Lendecke Date: Wed, 9 Sep 2009 10:24:08 +0000 (+0200) Subject: s3:libsmb: Correctly chew keepalive packets X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28674fcda7aaf839fdf5704e4133a0bd3a3f93a2;p=thirdparty%2Fsamba.git 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 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)). --- 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 */