Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14935
b: refs/heads/master
c: ea86575
h: refs/heads/master
i:
  14933: bffc920
  14931: 6c44135
  14927: 3e964a2
v: v3
  • Loading branch information
Thomas Graf authored and David S. Miller committed Dec 1, 2005
1 parent 8871e8c commit 4f8a571
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 2a43c4af3fa2e701008d51c28365e26fccf9cbb0
refs/heads/master: ea86575eaf99a9262a969309d934318028dbfacb
8 changes: 6 additions & 2 deletions trunk/net/ipv4/fib_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,12 +544,16 @@ static void nl_fib_input(struct sock *sk, int len)
struct sk_buff *skb = NULL;
struct nlmsghdr *nlh = NULL;
struct fib_result_nl *frn;
int err;
u32 pid;
struct fib_table *tb;

skb = skb_recv_datagram(sk, 0, 0, &err);
skb = skb_dequeue(&sk->sk_receive_queue);
nlh = (struct nlmsghdr *)skb->data;
if (skb->len < NLMSG_SPACE(0) || skb->len < nlh->nlmsg_len ||
nlh->nlmsg_len < NLMSG_LENGTH(sizeof(*frn))) {
kfree_skb(skb);
return;
}

frn = (struct fib_result_nl *) NLMSG_DATA(nlh);
tb = fib_get_table(frn->tb_id_in);
Expand Down

0 comments on commit 4f8a571

Please sign in to comment.