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:
Jiuzhu Dong
2021-03-04 23:33:11 +08:00
parent 7bb419dae1
commit 46a3d95047
+2 -2
View File
@@ -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);