Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18566
b: refs/heads/master
c: caf5b04
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Jan 15, 2006
1 parent f69a634 commit fdc4882
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 650eec5e04468d0611a60e6098464b7c43981552
refs/heads/master: caf5b04c82f05c65843b2d7189845d6c3df5a41e
6 changes: 3 additions & 3 deletions trunk/net/ipv4/fib_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,13 +289,13 @@ static int inet_check_attr(struct rtmsg *r, struct rtattr **rta)
{
int i;

for (i=1; i<=RTA_MAX; i++) {
struct rtattr *attr = rta[i-1];
for (i=1; i<=RTA_MAX; i++, rta++) {
struct rtattr *attr = *rta;
if (attr) {
if (RTA_PAYLOAD(attr) < 4)
return -EINVAL;
if (i != RTA_MULTIPATH && i != RTA_METRICS)
rta[i-1] = (struct rtattr*)RTA_DATA(attr);
*rta = (struct rtattr*)RTA_DATA(attr);
}
}
return 0;
Expand Down

0 comments on commit fdc4882

Please sign in to comment.