summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>2009-10-18 21:28:28 +0300
committerAnatoliy Atanasov <anatoliy.atanasov@postpath.com>2009-10-21 11:49:50 +0300
commit1ecca31caa8c366264e8b15fdb6363a4a5338cde (patch)
tree00aee111bc6f15df782188d1d450454fcf02b002
parent4b6cfbb6d27eea07400d0eacb08b2f69724b19ca (diff)
downloadsamba-1ecca31caa8c366264e8b15fdb6363a4a5338cde.tar.gz
samba-1ecca31caa8c366264e8b15fdb6363a4a5338cde.tar.bz2
samba-1ecca31caa8c366264e8b15fdb6363a4a5338cde.zip
s4/drs(tort): fixed '==' to '>='
ATTID is marked as partial by adding 32768. Thus the check should be '>= 32768'
-rw-r--r--source4/torture/drs/drs_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/drs/drs_util.c b/source4/torture/drs/drs_util.c
index 093fcf8e2c..b8602c7e55 100644
--- a/source4/torture/drs/drs_util.c
+++ b/source4/torture/drs/drs_util.c
@@ -78,7 +78,7 @@ bool drs_util_oid_from_attid(struct torture_context *tctx,
bin_oid.data[bin_oid.length-1] = lo_word;
}
else {
- if (lo_word == 32768) {
+ if (lo_word >= 32768) {
lo_word -= 32768;
}
bin_oid.data[bin_oid.length-2] = ((lo_word / 128) % 128) + 128; // (0x80 | ((lo_word>>7)&0x7f))