Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255559
b: refs/heads/master
c: 1f2d9c9
h: refs/heads/master
i:
  255557: 774ddb6
  255555: cb1500e
  255551: fcd8af4
v: v3
  • Loading branch information
Patrick McHardy committed Jun 16, 2011
1 parent 7890b16 commit bb0577a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 520b2756d9414cb6b0f6fc70714e95ee9248ebf4
refs/heads/master: 1f2d9c9dd8276b1c19ef80e6d8059fe47506d4c3
11 changes: 8 additions & 3 deletions trunk/net/netfilter/xt_CT.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/gfp.h>
#include <linux/skbuff.h>
Expand Down Expand Up @@ -95,8 +95,11 @@ static int xt_ct_tg_check(const struct xt_tgchk_param *par)
if (info->helper[0]) {
ret = -ENOENT;
proto = xt_ct_find_proto(par);
if (!proto)
if (!proto) {
pr_info("You must specify a L4 protocol, "
"and not use inversions on it.\n");
goto err3;
}

ret = -ENOMEM;
help = nf_ct_helper_ext_add(ct, GFP_KERNEL);
Expand All @@ -107,8 +110,10 @@ static int xt_ct_tg_check(const struct xt_tgchk_param *par)
help->helper = nf_conntrack_helper_try_module_get(info->helper,
par->family,
proto);
if (help->helper == NULL)
if (help->helper == NULL) {
pr_info("No such helper \"%s\"\n", info->helper);
goto err3;
}
}

__set_bit(IPS_TEMPLATE_BIT, &ct->status);
Expand Down

0 comments on commit bb0577a

Please sign in to comment.