diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c index 8cdc37e20fb..0bdc96dd477 100644 --- a/source3/winbindd/idmap_autorid.c +++ b/source3/winbindd/idmap_autorid.c @@ -394,7 +394,7 @@ static NTSTATUS idmap_autorid_sid_to_id_alloc(struct idmap_domain *dom, res = dbwrap_transaction_commit(ctx->db); if (res == 0) { map->status = ID_MAPPED; - return ret; + return NT_STATUS_OK; } DEBUG(2, ("transaction_commit failed\n"));