summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@io.vyatta.com>2008-10-28 15:04:12 -0700
committerStig Thormodsrud <stig@io.vyatta.com>2008-10-28 15:04:12 -0700
commit028a05903c69ab9b6d1e8a22791ccc9fd381e244 (patch)
tree6be6953f86a7d4d49cd1b12ae5d848935cb4485f
parent15d866861cf80cc188c44c88db49c4d24d2f5613 (diff)
downloadvyatta-cfg-028a05903c69ab9b6d1e8a22791ccc9fd381e244.tar.gz
vyatta-cfg-028a05903c69ab9b6d1e8a22791ccc9fd381e244.zip
Fix 3505: cli crash on delete of ipv6net static route.
-rw-r--r--src/cli_new.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cli_new.c b/src/cli_new.c
index 0eed12b..ae48903 100644
--- a/src/cli_new.c
+++ b/src/cli_new.c
@@ -1859,7 +1859,10 @@ static void scan_ipv6(char *val, unsigned int *parts)
int total = 8;
int gap;
- for (p = val;TRUE; ++p) {
+ p = val;
+ if (strncmp(p, ".wh.", 4) == 0)
+ p = p + 4;
+ for ( ;TRUE; ++p) {
switch ((c = *p)) {
case '.':
if (dot_cnt == 0) {