summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-11-08 18:20:44 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-11-08 18:20:44 -0800
commit909d3e2eb34283300016f0671b213d2d756111cf (patch)
treee81dea6087bbf91f7bf2cf594dd7fa46590b7598 /src
parent369fc3f7d589bf4380e544c84753ed2713ce20b5 (diff)
downloadvyatta-cfg-909d3e2eb34283300016f0671b213d2d756111cf.tar.gz
vyatta-cfg-909d3e2eb34283300016f0671b213d2d756111cf.zip
fix for bug 2470: set the type of variable value reference correctly
according to the conversion result.
Diffstat (limited to 'src')
-rw-r--r--src/cli_val_engine.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cli_val_engine.c b/src/cli_val_engine.c
index 811b422..fddad4c 100644
--- a/src/cli_val_engine.c
+++ b/src/cli_val_engine.c
@@ -726,6 +726,9 @@ int clind_config_engine_apply_command_path(clind_path_ref cfg_path_orig,
if(valarr) {
int k=0;
+
+ /* set the type */
+ res->val_type = val_type;
for(k=0;k<vallen;k++) {