Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78495
b: refs/heads/master
c: ac8e27f
h: refs/heads/master
i:
  78493: 1977648
  78491: 07f768b
  78487: 2559456
  78479: 16d6dec
  78463: 41cb137
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jan 28, 2008
1 parent 71cd46d commit de5f445
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: 03bffc1341c757e4b15a5a6058ad624e28b4801e
refs/heads/master: ac8e27fd89ca16e02fa1f911480bc46d64edc9da
8 changes: 1 addition & 7 deletions trunk/net/ipv4/netfilter/ip_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -1479,12 +1479,6 @@ struct compat_ipt_replace {
struct compat_ipt_entry entries[0];
};

static inline int compat_copy_match_to_user(struct ipt_entry_match *m,
void __user **dstptr, compat_uint_t *size)
{
return xt_compat_match_to_user(m, dstptr, size);
}

static int
compat_copy_entry_to_user(struct ipt_entry *e, void __user **dstptr,
compat_uint_t *size, struct xt_counters *counters,
Expand All @@ -1506,7 +1500,7 @@ compat_copy_entry_to_user(struct ipt_entry *e, void __user **dstptr,
goto out;

*dstptr += sizeof(struct compat_ipt_entry);
ret = IPT_MATCH_ITERATE(e, compat_copy_match_to_user, dstptr, size);
ret = IPT_MATCH_ITERATE(e, xt_compat_match_to_user, dstptr, size);
target_offset = e->target_offset - (origsize - *size);
if (ret)
goto out;
Expand Down

0 comments on commit de5f445

Please sign in to comment.