All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicolas Bouliane <nib@cookinglinux.org>
To: netfilter-devel <netfilter-devel@lists.netfilter.org>
Subject: [PATCH] libipt_helper
Date: Sun, 02 Jan 2005 02:35:26 -0500	[thread overview]
Message-ID: <41D7A43E.9060903@cookinglinux.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 135 bytes --]

Hi,

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

Cheers :)

-acidfu

[-- Attachment #2: libipt_helper.c.patch --]
[-- Type: text/x-patch, Size: 448 bytes --]

Index: extensions/libipt_helper.c
===================================================================
--- extensions/libipt_helper.c	(revision 3540)
+++ extensions/libipt_helper.c	(working copy)
@@ -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';

             reply	other threads:[~2005-01-02  7:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-02  7:35 Nicolas Bouliane [this message]
2005-01-02 23:19 ` [PATCH] libipt_helper Patrick McHardy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41D7A43E.9060903@cookinglinux.org \
    --to=nib@cookinglinux.org \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.