net: telnet: User could telnet to zephyr only once
User could telnet to zephyr only once and the second connection was denied. The reason was that the telnet socket was not properly marked as accepting a new connection. Fixes #20042 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
0f30bb23ab
commit
873d1ed14a
1 changed files with 2 additions and 0 deletions
|
@ -238,6 +238,8 @@ static void telnet_accept(struct net_context *client,
|
|||
goto error;
|
||||
}
|
||||
|
||||
net_context_set_accepting(client, false);
|
||||
|
||||
LOG_DBG("Telnet client connected (family AF_INET%s)",
|
||||
net_context_get_family(client) == AF_INET ? "" : "6");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue