svn commit: samba r21993 - in branches/SAMBA_3_0/source/libsmb: .
jra at samba.org
jra at samba.org
Tue Mar 27 22:27:06 GMT 2007
Author: jra
Date: 2007-03-27 22:27:06 +0000 (Tue, 27 Mar 2007)
New Revision: 21993
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21993
Log:
Don't let keepalives interferece with sign or seal
in the client code.
Jeremy.
Modified:
branches/SAMBA_3_0/source/libsmb/clientgen.c
Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/clientgen.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/clientgen.c 2007-03-27 21:55:43 UTC (rev 21992)
+++ branches/SAMBA_3_0/source/libsmb/clientgen.c 2007-03-27 22:27:06 UTC (rev 21993)
@@ -106,6 +106,11 @@
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 */
More information about the samba-cvs
mailing list