]> git.hungrycats.org Git - linux/commitdiff
net/ipv4/ip_options.c: IPOPT_END padding needs to increment optptr.
authorJeff DeFouw <defouwj@purdue.edu>
Fri, 13 Sep 2002 08:47:55 +0000 (01:47 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Fri, 13 Sep 2002 08:47:55 +0000 (01:47 -0700)
net/ipv4/ip_options.c

index 8faded2b254f50fee9510884d06706c42247b918..915da98091003c4255c052ecf878597049c94590 100644 (file)
@@ -266,7 +266,7 @@ int ip_options_compile(struct ip_options * opt, struct sk_buff * skb)
        for (l = opt->optlen; l > 0; ) {
                switch (*optptr) {
                      case IPOPT_END:
-                       for (optptr++, l--; l>0; l--) {
+                       for (optptr++, l--; l>0; optptr++, l--) {
                                if (*optptr != IPOPT_END) {
                                        *optptr = IPOPT_END;
                                        opt->is_changed = 1;