diff options
Diffstat (limited to 'networking/libiproute/iproute.c')
-rw-r--r-- | networking/libiproute/iproute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index 95dafe183..2a8610ea6 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c | |||
@@ -83,7 +83,7 @@ static int FAST_FUNC print_route(const struct sockaddr_nl *who UNUSED_PARAM, | |||
83 | if (len < 0) | 83 | if (len < 0) |
84 | bb_error_msg_and_die("wrong nlmsg len %d", len); | 84 | bb_error_msg_and_die("wrong nlmsg len %d", len); |
85 | 85 | ||
86 | memset(tb, 0, sizeof(tb)); | 86 | //memset(tb, 0, sizeof(tb)); - parse_rtattr does this |
87 | parse_rtattr(tb, RTA_MAX, RTM_RTA(r), len); | 87 | parse_rtattr(tb, RTA_MAX, RTM_RTA(r), len); |
88 | 88 | ||
89 | #if HAVE_RTA_TABLE | 89 | #if HAVE_RTA_TABLE |
@@ -1081,7 +1081,7 @@ static int iproute_get(char **argv) | |||
1081 | bb_error_msg_and_die("wrong len %d", len); | 1081 | bb_error_msg_and_die("wrong len %d", len); |
1082 | } | 1082 | } |
1083 | 1083 | ||
1084 | memset(tb, 0, sizeof(tb)); | 1084 | //memset(tb, 0, sizeof(tb)); - parse_rtattr does this |
1085 | parse_rtattr(tb, RTA_MAX, RTM_RTA(r), len); | 1085 | parse_rtattr(tb, RTA_MAX, RTM_RTA(r), len); |
1086 | 1086 | ||
1087 | if (tb[RTA_PREFSRC]) { | 1087 | if (tb[RTA_PREFSRC]) { |