Skip to contentSkip to conversation

libip6t_tcp

PATCH In review Andras Kis-Szabo 2 participants 2 messages Jul 8, 2002 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libip6t_tcp

Hi,

2 misstyping bug in libip6t_tcp.c.

Regards,

kisza

Signature · 3 lines
    Andras Kis-Szabo       Security Development, Design and Audit
-------------------------/        Zorp, NetFilter and IPv6
 [email protected] /-----Member of the BUTE-MIS-SEARCHlab---------->
userspace/extensions/libip6t_tcp.c +2 -2
@@ -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]
#1 lore raw
Quoted 4 lines · Andras Kis-Szabo

Hi,

2 misstyping bug in libip6t_tcp.c.

Thanks, patch applied to cvs.

- James

Signature · 2 lines
James Morris
<[email protected]>