svn commit: samba r15006 - in trunk/source/libsmb: .
vlendec at samba.org
vlendec at samba.org
Sun Apr 9 08:00:35 GMT 2006
Author: vlendec
Date: 2006-04-09 08:00:34 +0000 (Sun, 09 Apr 2006)
New Revision: 15006
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15006
Log:
Fix Coverity bug # 281.
Jeremy, please check this.
Volker
Modified:
trunk/source/libsmb/clifile.c
Changeset:
Modified: trunk/source/libsmb/clifile.c
===================================================================
--- trunk/source/libsmb/clifile.c 2006-04-09 01:20:26 UTC (rev 15005)
+++ trunk/source/libsmb/clifile.c 2006-04-09 08:00:34 UTC (rev 15006)
@@ -1148,7 +1148,7 @@
SMB_BIG_UINT offset, SMB_BIG_UINT len,
BOOL wait_lock, enum brl_type lock_type)
{
- if (lock_type != READ_LOCK || lock_type != WRITE_LOCK) {
+ if (lock_type != READ_LOCK && lock_type != WRITE_LOCK) {
return False;
}
return cli_posix_lock_internal(cli, fnum, offset, len, wait_lock, lock_type);
More information about the samba-cvs
mailing list