summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hornung <chhornung@googlemail.com>2010-11-03 13:08:00 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2010-11-04 07:59:42 (GMT)
commit3bbfb58bec18990a2ee93f31ea1ee2fd19c4d9b2 (patch)
tree0ca93d8114af5743e41147dacb3448a487116cdf
parent6052c2b0be796bc92c870b8261f49bc1584877b9 (diff)
downloadbusybox-3bbfb58bec18990a2ee93f31ea1ee2fd19c4d9b2.tar.gz
busybox-3bbfb58bec18990a2ee93f31ea1ee2fd19c4d9b2.tar.bz2
ip: Fix command line option parsing of "ip route get ..."
I found and fixed a bug in the command line options parsing of "ip route get": It was impossible to get any option other than the IP address recognized correctly, and e.g. the command "ip route get connected" just hung up infinitely in the options parsing loop instead of printing an error message. Signed-off-by: Christian Hornung <chhornung@googlemail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/libiproute/iproute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c
index f66774a..f6071b4 100644
--- a/networking/libiproute/iproute.c
+++ b/networking/libiproute/iproute.c
@@ -788,8 +788,8 @@ static int iproute_get(char **argv)
}
req.r.rtm_dst_len = addr.bitlen;
}
- argv++;
}
+ argv++;
}
if (req.r.rtm_dst_len == 0) {