Changeset 17105


Ignore:
Timestamp:
05/23/11 12:51:49 (2 years ago)
Author:
BrainSlayer
Message:

fix rules delete bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/ar531x/linux-2.6.23/net/ipv4/netfilter/ip_tables.c

    r12400 r17105  
    10171017                struct ipt_entry_match *m; 
    10181018                struct ipt_entry_target *t; 
     1019                u8 flags; 
    10191020 
    10201021                e = (struct ipt_entry *)(loc_cpu_entry + off); 
     
    10231024                                 &counters[num], 
    10241025                                 sizeof(counters[num])) != 0) { 
     1026                        ret = -EFAULT; 
     1027                        goto free_counters; 
     1028                } 
     1029 
     1030                flags = e->ip.flags & ~IPT_F_NO_DEF_MATCH; 
     1031                if (copy_to_user(userptr + off 
     1032                                 + offsetof(struct ipt_entry, ip.flags), 
     1033                                 &flags, sizeof(flags)) !=0) { 
    10251034                        ret = -EFAULT; 
    10261035                        goto free_counters; 
Note: See TracChangeset for help on using the changeset viewer.