diff options
Diffstat (limited to 'source4/dsdb/common')
-rw-r--r-- | source4/dsdb/common/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index fb742f92bd..d0efa057e7 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -1862,7 +1862,8 @@ failed: bool samdb_is_gc(struct ldb_context *ldb) { const char *attrs[] = { "options", NULL }; - int ret, options; + uint32_t options; + int ret; struct ldb_result *res; TALLOC_CTX *tmp_ctx; @@ -1883,7 +1884,7 @@ bool samdb_is_gc(struct ldb_context *ldb) return false; } - options = ldb_msg_find_attr_as_int(res->msgs[0], "options", 0); + options = ldb_msg_find_attr_as_uint(res->msgs[0], "options", 0); talloc_free(tmp_ctx); /* if options attribute has the 0x00000001 flag set, then enable the global catlog */ |