Skip to contentSkip to conversation

libipt_helper

PATCH Applied Nicolas Bouliane 2 participants 2 messages Jan 2, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libipt_helper

Hi,

This trivial patch prevents from using --helper several time, which case would overwriting previous value.

Cheers :)

-acidfu

libipt_helper.c +3 -0
Index: extensions/libipt_helper.c
===================================================================
@@ -44,6 +44,9 @@
 
 	switch (c) {
 	case '1':
+		if (*flags)
+			exit_error(PARAMETER_PROBLEM,
+					"helper match: Only use --helper ONCE!");
 		check_inverse(optarg, &invert, &invert, 0);
 		strncpy(info->name, optarg, 29);
 		info->name[29] = '\0';
#1 lore raw
Quoted 3 lines · Nicolas Bouliane

Hi,

This trivial patch prevents from using --helper several time, which case would overwriting previous value.

Applied, thanks.

Regards
Patrick