diff options
author | Stig Thormodsrud <stig@io.vyatta.com> | 2008-10-28 15:04:12 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@io.vyatta.com> | 2008-10-28 15:04:12 -0700 |
commit | 028a05903c69ab9b6d1e8a22791ccc9fd381e244 (patch) | |
tree | 6be6953f86a7d4d49cd1b12ae5d848935cb4485f | |
parent | 15d866861cf80cc188c44c88db49c4d24d2f5613 (diff) | |
download | vyatta-cfg-028a05903c69ab9b6d1e8a22791ccc9fd381e244.tar.gz vyatta-cfg-028a05903c69ab9b6d1e8a22791ccc9fd381e244.zip |
Fix 3505: cli crash on delete of ipv6net static route.
-rw-r--r-- | src/cli_new.c | 5 |
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) { |