summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-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))