summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-11-09 21:02:10 +0100
committerIra Cooper <ira@samba.org>2013-11-11 21:04:09 +0100
commitc85deeed32607461e552636761b9cd402025b6da (patch)
tree0c698413d54ae1241389bf62a74a14d6749390fb /source3
parent43ac7e81ec58d9043728b0e12b31f2993ec726c0 (diff)
downloadsamba-c85deeed32607461e552636761b9cd402025b6da.tar.gz
samba-c85deeed32607461e552636761b9cd402025b6da.tar.xz
samba-c85deeed32607461e552636761b9cd402025b6da.zip
smbd: Fix CID 1035434 Same on both sides
Looks scary, but the only effect of this bug is too many UNLOCK messages Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/locking/brlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c
index b5eebc8e04..e92a2cf0ec 100644
--- a/source3/locking/brlock.c
+++ b/source3/locking/brlock.c
@@ -2222,7 +2222,7 @@ static int compare_procids(const void *p1, const void *p2)
const struct server_id *i2 = (const struct server_id *)p2;
if (i1->pid < i2->pid) return -1;
- if (i2->pid > i2->pid) return 1;
+ if (i1->pid > i2->pid) return 1;
return 0;
}