From 028a05903c69ab9b6d1e8a22791ccc9fd381e244 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Tue, 28 Oct 2008 15:04:12 -0700 Subject: Fix 3505: cli crash on delete of ipv6net static route. --- src/cli_new.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3