aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/rtm_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/libiproute/rtm_map.c')
-rw-r--r--networking/libiproute/rtm_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/libiproute/rtm_map.c b/networking/libiproute/rtm_map.c
index ca2f4436a..6fe5c4b75 100644
--- a/networking/libiproute/rtm_map.c
+++ b/networking/libiproute/rtm_map.c
@@ -88,7 +88,7 @@ int rtnl_rtntype_a2n(int *id, char *arg)
88 res = RTN_THROW; 88 res = RTN_THROW;
89 else { 89 else {
90 res = strtoul(arg, &end, 0); 90 res = strtoul(arg, &end, 0);
91 if (!end || end == arg || *end || res > 255) 91 if (end == arg || *end || res > 255)
92 return -1; 92 return -1;
93 } 93 }
94 *id = res; 94 *id = res;