| Submitter | Jeff Kirsher |
|---|---|
| Date | Feb. 10, 2010, 11:46 a.m. |
| Message ID | <20100210114646.14570.87012.stgit@localhost.localdomain> |
| Download | mbox | patch |
| Permalink | /patch/45020/ |
| State | Accepted |
| Delegated to: | stephen hemminger |
| Headers | show |
Comments
Patch
diff --git a/lib/libnetlink.c b/lib/libnetlink.c index 4ba6019..cfeb894 100644 --- a/lib/libnetlink.c +++ b/lib/libnetlink.c @@ -644,7 +644,7 @@ int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len) { memset(tb, 0, sizeof(struct rtattr *) * (max + 1)); while (RTA_OK(rta, len)) { - if (rta->rta_type <= max) + if ((rta->rta_type <= max) && (!tb[rta->rta_type])) tb[rta->rta_type] = rta; rta = RTA_NEXT(rta,len); }