瀏覽代碼

[telnet server]fix several connection

balbekova 5 年之前
父節點
當前提交
5576d6ebda
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      modules/Telnet_Server/telnet_server.c

+ 6 - 0
modules/Telnet_Server/telnet_server.c

@@ -736,6 +736,12 @@ void vBasicSocketsCommandInterpreterTask( void *pvParameters )
 				else {
 					DBG printf("  Descriptor %d is readable\n", sock);
 
+					for(cur_cnt = 0; cur_cnt < NUMBER_TELNET_CONNECT; cur_cnt ++){
+						if(auth_tlnt_srvr_param[cur_cnt].num_connect == sock){
+							break;
+						}
+					}
+
 					/* Receive data on this connection until the  */
 					/* recv fails with EWOULDBLOCK.  If any other */
 					/* failure occurs, we will close the          */