Copy user_data in config_item_set_from

So that the validation callback can make use of it.

This is analogous to the change in schema application.
This commit is contained in:
Přemysl Eric Janouch 2016-01-09 05:19:43 +01:00
parent bc7e83137e
commit f90cc1e5a2
1 changed files with 1 additions and 0 deletions

View File

@ -4421,6 +4421,7 @@ config_item_set_from (struct config_item *self, struct config_item *source,
return true;
}
source->user_data = self->user_data;
if (!config_item_validate_by_schema (source, schema, e))
return false;