summaryrefslogtreecommitdiff
path: root/net/netfilter/xt_esp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/netfilter/xt_esp.c')
-rw-r--r--net/netfilter/xt_esp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/xt_esp.c b/net/netfilter/xt_esp.c
index 9f5da979567..143bfdc8e38 100644
--- a/net/netfilter/xt_esp.c
+++ b/net/netfilter/xt_esp.c
@@ -66,10 +66,10 @@ static int esp_mt_check(const struct xt_mtchk_param *par)
if (espinfo->invflags & ~XT_ESP_INV_MASK) {
pr_debug("unknown flags %X\n", espinfo->invflags);
- return false;
+ return -EINVAL;
}
- return true;
+ return 0;
}
static struct xt_match esp_mt_reg[] __read_mostly = {