s4:dsdb - fix unsigned integer save problems using the "%u" specifier
[samba.git] / source4 / dsdb / samdb / ldb_modules / instancetype.c
index 5032462196269e304cb07cb5e8e8becc97a17292..a728502449ef62d3b577048020d7f457aee8e55a 100644 (file)
@@ -162,7 +162,7 @@ static int instancetype_add(struct ldb_module *module, struct ldb_request *req)
         */
        instanceType = INSTANCE_TYPE_WRITE;
 
-       ret = ldb_msg_add_fmt(msg, "instanceType", "%u", instanceType);
+       ret = samdb_msg_add_uint(ldb, msg, msg, "instanceType", instanceType);
        if (ret != LDB_SUCCESS) {
                return ret;
        }