Skip to content
Commit 135367b8 authored by Jan Engelhardt's avatar Jan Engelhardt
Browse files

netfilter: xtables: change xt_target.checkentry return type



Restore function signatures from bool to int so that we can report
memory allocation failures or similar using -ENOMEM rather than
always having to pass -EINVAL back.

// <smpl>
@@
type bool;
identifier check, par;
@@
-bool check
+int check
 (struct xt_tgchk_param *par) { ... }
// </smpl>

Minus the change it does to xt_ct_find_proto.

Signed-off-by: default avatarJan Engelhardt <jengelh@medozas.de>
parent b0f38452
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment