From ebbb7f3d56a6854aadcf3f7aa5a4ecf23fda0030 Mon Sep 17 00:00:00 2001 From: Oleg Zhurakivskyy Date: Fri, 6 Mar 2020 14:54:17 +0200 Subject: [PATCH] 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 --- subsys/net/ip/tcp2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/subsys/net/ip/tcp2.c b/subsys/net/ip/tcp2.c index 09ae5613c2a..162c9c94cc2 100644 --- a/subsys/net/ip/tcp2.c +++ b/subsys/net/ip/tcp2.c @@ -1247,7 +1247,6 @@ int net_tcp_connect(struct net_context *context, struct tcp *conn; int ret; - net_tcp_get(context); conn = context->tcp; conn->iface = net_context_get_iface(context);