diff options
Diffstat (limited to 'networking/ifconfig.c')
-rw-r--r-- | networking/ifconfig.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c index 4d346c47f..59b6f0acc 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c | |||
@@ -379,7 +379,8 @@ int ifconfig_main(int argc, char **argv) | |||
379 | 379 | ||
380 | safe_strncpy(host, *argv, (sizeof host)); | 380 | safe_strncpy(host, *argv, (sizeof host)); |
381 | #ifdef CONFIG_FEATURE_IPV6 | 381 | #ifdef CONFIG_FEATURE_IPV6 |
382 | if ((prefix = strchr(host, '/'))) { | 382 | prefix = strchr(host, '/'); |
383 | if (prefix) { | ||
383 | if (safe_strtoi(prefix + 1, &prefix_len) || | 384 | if (safe_strtoi(prefix + 1, &prefix_len) || |
384 | (prefix_len < 0) || (prefix_len > 128)) | 385 | (prefix_len < 0) || (prefix_len > 128)) |
385 | { | 386 | { |