s4/drs(tort): fixed '==' to '>='
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>
Sun, 18 Oct 2009 18:28:28 +0000 (21:28 +0300)
committerAnatoliy Atanasov <anatoliy.atanasov@postpath.com>
Wed, 21 Oct 2009 08:49:50 +0000 (11:49 +0300)
ATTID is marked as partial by adding 32768.
Thus the check should be '>= 32768'

source4/torture/drs/drs_util.c

index 093fcf8e2c1d2c0607a1a110448450a008979cbf..b8602c7e5566ddb7964fa4e516f3a051f9184133 100644 (file)
@@ -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))