autorid: store hwm as uint32_t in idmap_autorid_init_hwm()
authorMichael Adam <obnox@samba.org>
Thu, 20 Mar 2014 11:40:31 +0000 (12:40 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 2 Apr 2014 22:26:27 +0000 (00:26 +0200)
The HWM is treated as uint32_t all the times.
This was just a leftover from old code.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/idmap_autorid_tdb.c

index dd997671c95aa4306439044e71fca0eeb99c90c4..190999eb796529e8572eb320759e62c775a61483 100644 (file)
@@ -396,7 +396,7 @@ NTSTATUS idmap_autorid_init_hwm(struct db_context *db, const char *hwm)
 
        status = dbwrap_fetch_uint32_bystring(db, hwm, &hwmval);
        if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND))  {
-               status = dbwrap_trans_store_int32_bystring(db, hwm, 0);
+               status = dbwrap_trans_store_uint32_bystring(db, hwm, 0);
                if (!NT_STATUS_IS_OK(status)) {
                        DEBUG(0,
                              ("Unable to initialise HWM (%s) in autorid "