1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

r21993: Don't let keepalives interferece with sign or seal

in the client code.
Jeremy.
This commit is contained in:
Jeremy Allison 2007-03-27 22:27:06 +00:00 committed by Gerald (Jerry) Carter
parent 8f113ad191
commit 3e901389fe

View File

@ -106,6 +106,11 @@ BOOL cli_receive_smb_internal(struct cli_state *cli, BOOL eat_keepalives)
again:
ret = client_receive_smb(cli, eat_keepalives);
if (!eat_keepalives && (CVAL(cli->inbuf,0) == SMBkeepalive)) {
/* Give back the keepalive. */
return True;
}
if (ret) {
/* it might be an oplock break request */