From f7a03e8240e9f43cd687ca8f4466da677e8ac3db Mon Sep 17 00:00:00 2001 From: Michal Zima Date: Thu, 14 Feb 2013 14:28:57 +0100 Subject: [PATCH] Fixed usage of uninitialized variable in TCP code --- src/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcp.c b/src/tcp.c index 5437474..ca2caea 100644 --- a/src/tcp.c +++ b/src/tcp.c @@ -366,7 +366,7 @@ int tcp_ipv4(struct s_ethernet *eth4, struct s_ipv4 *ip4, char *payload, ip6->hop_limit = ip4->ttl; ip6->next_header = IPPROTO_FRAGMENT; ipv4_to_ipv6(&ip4->ip_src, &ip6->ip_src); - ip6->ip_dest = connection->ipv6; + ip6->ip_dest = frag_conn->connection->ipv6; /* build IPv6 fragment header */ frag->next_header = IPPROTO_TCP;