From 6cfddc6f74df8337fd756adb749c0fac8147c98c Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 3 Apr 2014 00:06:04 +0200 Subject: [PATCH] autorid: use the db argument in the initialize traverse action. By a copy and paste error, the global autorid_db was used. This was not currently a problem in behaviour, because this autorid_db is passed as the argument. This change fixes the callback function for consistency. Signed-off-by: Michael Adam --- source3/winbindd/idmap_autorid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c index 84dad93..bc5b500 100644 --- a/source3/winbindd/idmap_autorid.c +++ b/source3/winbindd/idmap_autorid.c @@ -592,12 +592,12 @@ static NTSTATUS idmap_autorid_initialize_action(struct db_context *db, common = (struct idmap_tdb_common_context *)dom->private_data; config = (struct autorid_global_config *)common->private_data; - status = idmap_autorid_init_hwms(autorid_db); + status = idmap_autorid_init_hwms(db); if (!NT_STATUS_IS_OK(status)) { return status; } - status = idmap_autorid_saveconfig(autorid_db, config); + status = idmap_autorid_saveconfig(db, config); if (!NT_STATUS_IS_OK(status)) { DEBUG(1, ("Failed to store configuration data!\n")); return status; -- 1.8.3.2