diff options
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r-- | source3/libsmb/clientgen.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index b3c38f39ae..95d7cdadd7 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -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 */ |