mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
r21993: Don't let keepalives interferece with sign or seal
in the client code. Jeremy. (This used to be commit 3e901389feedadd64c6ba712ab09cdfb497a9e0a)
This commit is contained in:
parent
0eab431194
commit
208367f4d1
@ -107,6 +107,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 */
|
||||
if (!(CVAL(cli->inbuf, smb_flg) & FLAG_REPLY) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user