Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243243
b: refs/heads/master
c: 8628bd8
h: refs/heads/master
i:
  243241: 35568df
  243239: 26849f2
v: v3
  • Loading branch information
Jan Luebbe authored and David S. Miller committed Mar 28, 2011
1 parent 3a9478c commit d8f134c
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: dc760b375e50a47847d4942811bd9679beeb5535
refs/heads/master: 8628bd8af7c4c14f40f5183f80f5744c4e682439
6 changes: 3 additions & 3 deletions trunk/net/ipv4/ip_options.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ int ip_options_echo(struct ip_options * dopt, struct sk_buff * skb)
} else {
dopt->ts_needtime = 0;

if (soffset + 8 <= optlen) {
if (soffset + 7 <= optlen) {
__be32 addr;

memcpy(&addr, sptr+soffset-1, 4);
if (inet_addr_type(dev_net(skb_dst(skb)->dev), addr) != RTN_LOCAL) {
memcpy(&addr, dptr+soffset-1, 4);
if (inet_addr_type(dev_net(skb_dst(skb)->dev), addr) != RTN_UNICAST) {
dopt->ts_needtime = 1;
soffset += 8;
}
Expand Down

0 comments on commit d8f134c

Please sign in to comment.