Changeset 17106


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

fix rules delete bug

File:
1 edited

Legend:

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

    r10172 r17106  
    972972                struct ipt_entry_match *m; 
    973973                struct ipt_entry_target *t; 
     974                u8 flags; 
    974975 
    975976                e = (struct ipt_entry *)(loc_cpu_entry + off); 
     
    978979                                 &counters[num], 
    979980                                 sizeof(counters[num])) != 0) { 
     981                        ret = -EFAULT; 
     982                        goto free_counters; 
     983                } 
     984 
     985                flags = e->ip.flags & ~IPT_F_NO_DEF_MATCH; 
     986                if (copy_to_user(userptr + off 
     987                                 + offsetof(struct ipt_entry, ip.flags), 
     988                                 &flags, sizeof(flags)) !=0) { 
    980989                        ret = -EFAULT; 
    981990                        goto free_counters; 
Note: See TracChangeset for help on using the changeset viewer.