diff options
author | jamesm <jamesm> | 2002-07-08 10:58:50 +0000 |
---|---|---|
committer | jamesm <jamesm> | 2002-07-08 10:58:50 +0000 |
commit | 9487566036d110cfc8d23316744972a601fb3a2a (patch) | |
tree | 6b1d0ddaae8358139063ed7bf42aec606f61e61f | |
parent | 5fa0499241e8472a254c2495e78bd647508fdba1 (diff) |
2x bugfixes for libip6t_tcp from Andras Kis-Szabo
-rw-r--r-- | extensions/libip6t_tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libip6t_tcp.c b/extensions/libip6t_tcp.c index 2eb33dd..8e54dc4 100644 --- a/extensions/libip6t_tcp.c +++ b/extensions/libip6t_tcp.c @@ -143,7 +143,7 @@ parse_tcp_option(const char *option, u_int8_t *result) { 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 @@ static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match 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] |