diff options
Diffstat (limited to 'nuttx/netutils/telnetd')
-rw-r--r-- | nuttx/netutils/telnetd/telnetd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nuttx/netutils/telnetd/telnetd.c b/nuttx/netutils/telnetd/telnetd.c index 84e692221..61f3dcda6 100644 --- a/nuttx/netutils/telnetd/telnetd.c +++ b/nuttx/netutils/telnetd/telnetd.c @@ -350,7 +350,6 @@ static void *telnetd_handler(void *arg) if (pstate) { - /* Initialize the thread state structure */ memset(pstate, 0, sizeof(struct telnetd_s)); @@ -389,7 +388,7 @@ static void *telnetd_handler(void *arg) dbg("[%d] Exitting\n", sockfd); close(sockfd); - pthread_exit(NULL); + return NULL; } /**************************************************************************** |