netfilter: don't panic on error while walking through the init path
Don't panic if we hit an error while adding the nf_log or pernet netfilter support, just bail out. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Acked-by: Gao feng <gaofeng@cn.fujitsu.com>
This commit is contained in:
parent
8bc14d25ff
commit
6d11cfdba5
4 changed files with 20 additions and 12 deletions
|
@ -35,7 +35,7 @@ static inline void nf_inet_addr_mask(const union nf_inet_addr *a1,
|
|||
result->all[3] = a1->all[3] & mask->all[3];
|
||||
}
|
||||
|
||||
extern void netfilter_init(void);
|
||||
extern int netfilter_init(void);
|
||||
|
||||
/* Largest hook number + 1 */
|
||||
#define NF_MAX_HOOKS 8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue