fix for net/ipv6/tcp_ipv6.c

Alexander V. Lukyanov (lav@yars.free.net)
Tue, 25 May 1999 16:49:39 +0400


This is an obviously correct fix for a typo. Before this patch connect
to a refused ipv6 port caused an oops. The bug is present in 2.2.9 and 2.3.2.

--- tcp_ipv6.c.1 Tue May 25 16:27:27 1999
+++ tcp_ipv6.c Tue May 25 16:27:56 1999
@@ -551,7 +551,7 @@

failure:
dst_release(xchg(&sk->dst_cache, NULL));
- memcpy(&np->daddr, 0, sizeof(struct in6_addr));
+ memset(&np->daddr, 0, sizeof(struct in6_addr));
sk->daddr = 0;
return err;
}

Alexander.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/