]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libsmb: Correctly chew keepalive packets
authorVolker Lendecke <vl@samba.org>
Wed, 9 Sep 2009 10:24:08 +0000 (12:24 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 9 Sep 2009 12:34:38 +0000 (14:34 +0200)
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)).

source/libsmb/async_smb.c

index a1896e189ca66a0acc10ffd118a043c66bbfa5a4..3418788dc3da92f1bf3b320e5d16fd47154a528f 100644 (file)
@@ -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
         */