commit | 7025bac47fba90cb39a53c011ee78f7f66d72793 | [log] [tgz] |
---|---|---|
author | Gao Feng <fgao@ikuai8.com> | Wed Apr 12 18:33:03 2017 +0800 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Sat Apr 15 11:04:14 2017 +0200 |
tree | 52f749fdede74d3df5c3d05a46a1ff8513ba34b0 | |
parent | a702ece3b186dcf3577c33747359be13352951b6 [diff] |
netfilter: nf_nat: Fix return NF_DROP in nfnetlink_parse_nat_setup The __nf_nat_alloc_null_binding invokes nf_nat_setup_info which may return NF_DROP when memory is exhausted, so convert NF_DROP to -ENOMEM to make ctnetlink happy. Or ctnetlink_setup_nat treats it as a success when one error NF_DROP happens actully. Signed-off-by: Gao Feng <fgao@ikuai8.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>