summaryrefslogtreecommitdiff
path: root/src/cli_new.c
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-06-28 16:12:34 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-06-28 16:12:34 -0700
commit2dbc728a47409cd60541286dbe59e6e94225c066 (patch)
tree37dc13beef3c31eec4865f18e7005a2ba8422c7d /src/cli_new.c
parent57385bd52340981fcba23c705a8f3f0af43122f5 (diff)
downloadvyatta-cfg-2dbc728a47409cd60541286dbe59e6e94225c066.tar.gz
vyatta-cfg-2dbc728a47409cd60541286dbe59e6e94225c066.zip
return false for invalid value instead of exiting
Diffstat (limited to 'src/cli_new.c')
-rw-r--r--src/cli_new.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli_new.c b/src/cli_new.c
index 5fdf60b..896206d 100644
--- a/src/cli_new.c
+++ b/src/cli_new.c
@@ -2046,12 +2046,12 @@ boolean validate_value(vtw_def *def, char *cp)
if (cp[i] == '\'') {
fprintf(out_stream, "Cannot use the \"'\" (single quote) character "
"in a value string\n");
- bye("single quote in value string\n");
+ return FALSE;
}
if (cp[i] == '\n') {
fprintf(out_stream, "Cannot use the newline character "
"in a value string\n");
- bye("newline in value string\n");
+ return FALSE;
}
}
}