Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2274
b: refs/heads/master
c: f7d7fc0
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Juhl authored and David S. Miller committed Jun 19, 2005
1 parent 7d34ea1 commit bb28878
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 93765d8a435fa021c4b7cd0521b7959239d7158a
refs/heads/master: f7d7fc0322c1770fe7ee836ca2732c2f88e2e1a4
4 changes: 2 additions & 2 deletions trunk/net/ipv4/raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ int raw_rcv(struct sock *sk, struct sk_buff *skb)
return 0;
}

static int raw_send_hdrinc(struct sock *sk, void *from, int length,
static int raw_send_hdrinc(struct sock *sk, void *from, size_t length,
struct rtable *rt,
unsigned int flags)
{
Expand Down Expand Up @@ -298,7 +298,7 @@ static int raw_send_hdrinc(struct sock *sk, void *from, int length,
goto error_fault;

/* We don't modify invalid header */
if (length >= sizeof(*iph) && iph->ihl * 4 <= length) {
if (length >= sizeof(*iph) && iph->ihl * 4U <= length) {
if (!iph->saddr)
iph->saddr = rt->rt_src;
iph->check = 0;
Expand Down

0 comments on commit bb28878

Please sign in to comment.