net: tcp2: Don't instantiate an extra connection on connect
Don't erroneously instantiate an extra TCP connection on TCP connect. This problem was overlooked earlier and found while testing TCP2 client side. Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
This commit is contained in:
parent
d6f1937fbb
commit
ebbb7f3d56
1 changed files with 0 additions and 1 deletions
|
@ -1247,7 +1247,6 @@ int net_tcp_connect(struct net_context *context,
|
||||||
struct tcp *conn;
|
struct tcp *conn;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
net_tcp_get(context);
|
|
||||||
conn = context->tcp;
|
conn = context->tcp;
|
||||||
conn->iface = net_context_get_iface(context);
|
conn->iface = net_context_get_iface(context);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue