mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
telent: fix crash about telnet client connect
N/A Change-Id: I9afa15a3d8848e77a70f33f5429b6942e6cf8773 Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -1070,9 +1070,9 @@ static int telnet_session(FAR struct telnet_session_s *session)
|
||||
goto errout_with_semaphore;
|
||||
}
|
||||
|
||||
/* Close the original psoock (keeping the clone) */
|
||||
/* Close the original psock (keeping the clone) */
|
||||
|
||||
psock_close(psock);
|
||||
nx_close(session->ts_sd);
|
||||
|
||||
#ifdef CONFIG_TELNET_SUPPORT_NAWS
|
||||
telnet_sendopt(priv, TELNET_DO, TELNET_NAWS);
|
||||
|
||||
Reference in New Issue
Block a user