All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andras Kis-Szabo <kisza@securityaudit.hu>
To: netfilter-devel@lists.samba.org
Subject: [PATCH] libip6t_tcp
Date: Mon, 8 Jul 2002 09:56:51 +0200	[thread overview]
Message-ID: <20020708095651.A17100@sch.bme.hu> (raw)

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

Hi,

2 misstyping bug in libip6t_tcp.c.

Regards,

	kisza

-- 
    Andras Kis-Szabo       Security Development, Design and Audit
-------------------------/        Zorp, NetFilter and IPv6
 kisza@SecurityAudit.hu /-----Member of the BUTE-MIS-SEARCHlab---------->

[-- Attachment #2: tcp6.20020708 --]
[-- Type: text/plain, Size: 679 bytes --]

--- netfilter.old/userspace/extensions/libip6t_tcp.c	Mon Jul  8 09:44:13 2002
+++ netfilter/userspace/extensions/libip6t_tcp.c	Mon Jul  8 09:47:52 2002
@@ -143,7 +143,7 @@
 {
 	unsigned int ret;
 
-	if (string_to_number(option, 1, 266, &ret) == -1)
+	if (string_to_number(option, 1, 255, &ret) == -1)
 		exit_error(PARAMETER_PROBLEM, "Bad TCP option `%s'", option);
 
 	*result = (u_int8_t)ret;
@@ -371,7 +371,7 @@
 	const struct ip6t_tcp *tcpinfo = (struct ip6t_tcp *)match->data;
 
 	if (tcpinfo->spts[0] != 0
-	    && tcpinfo->spts[1] != 0xFFFF) {
+	    || tcpinfo->spts[1] != 0xFFFF) {
 		if (tcpinfo->invflags & IP6T_TCP_INV_SRCPT)
 			printf("! ");
 		if (tcpinfo->spts[0]

             reply	other threads:[~2002-07-08  7:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-08  7:56 Andras Kis-Szabo [this message]
2002-07-08 10:55 ` [PATCH] libip6t_tcp James Morris

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=20020708095651.A17100@sch.bme.hu \
    --to=kisza@securityaudit.hu \
    --cc=netfilter-devel@lists.samba.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.