TCP: fix "tcp src-address" command with IPv6
When given a single IPv6 address, the "tcp src-address" command incorrectly
infers the end of the range by copying sizeof(ip4_address_t) bytes from the
given address.
@@ -1657,7 +1657,7 @@ tcp_src_address (vlib_main_t * vm,
v6set = 1;
else if (unformat (input, "%U", unformat_ip6_address, &v6start))
{
- memcpy (&v6end, &v6start, sizeof (v4start));
+ memcpy (&v6end, &v6start, sizeof (v6start));
v6set = 1;
}
else if (unformat (input, "fib-table %d", &table_id))
