All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libip6t_tcp
@ 2002-07-08  7:56 Andras Kis-Szabo
  2002-07-08 10:55 ` James Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Andras Kis-Szabo @ 2002-07-08  7:56 UTC (permalink / raw)
  To: netfilter-devel

[-- 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]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] libip6t_tcp
  2002-07-08  7:56 [PATCH] libip6t_tcp Andras Kis-Szabo
@ 2002-07-08 10:55 ` James Morris
  0 siblings, 0 replies; 2+ messages in thread
From: James Morris @ 2002-07-08 10:55 UTC (permalink / raw)
  To: Andras Kis-Szabo; +Cc: netfilter-devel

On Mon, 8 Jul 2002, Andras Kis-Szabo wrote:

> Hi,
> 
> 2 misstyping bug in libip6t_tcp.c.
> 

Thanks, patch applied to cvs.


- James
-- 
James Morris
<jmorris@intercode.com.au>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-07-08 10:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-08  7:56 [PATCH] libip6t_tcp Andras Kis-Szabo
2002-07-08 10:55 ` James Morris

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.