]> git.hungrycats.org Git - linux/commitdiff
[NETFILTER]: Fix opt[] to be array of u_int8_t in tcp_find_option().
authorAdam Osuchowski <adwol@polsl.gliwice.pl>
Wed, 30 Jun 2004 07:35:37 +0000 (00:35 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Wed, 30 Jun 2004 07:35:37 +0000 (00:35 -0700)
net/ipv4/netfilter/ip_tables.c

index a612865a5635081884c9143596001e8592ca3e89..f24f17b8e03ebe07ed9d989b9217251445834fd7 100644 (file)
@@ -1458,7 +1458,7 @@ tcp_find_option(u_int8_t option,
                int *hotdrop)
 {
        /* tcp.doff is only 4 bits, ie. max 15 * 4 bytes */
-       char opt[60 - sizeof(struct tcphdr)];
+       u_int8_t opt[60 - sizeof(struct tcphdr)];
        unsigned int i;
 
        duprintf("tcp_match: finding option\n");