Commit 62011a0b authored by Ulrich Weber's avatar Ulrich Weber Committed by Stephen Hemminger

iproute2: use int instead of long for RTAX_HOPLIMIT compare

otherwise "if ((int)val == -1)" will never match on 64 bit systems
Signed-off-by: default avatarUlrich Weber <uweber@astaro.com>
parent 2eca8d3d
......@@ -494,7 +494,7 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
val = *(unsigned*)RTA_DATA(mxrta[i]);
switch (i) {
case RTAX_HOPLIMIT:
if ((long)val == -1)
if ((int)val == -1)
val = 0;
/* fall through */
default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment