Fix TELNET server locking up if an invalid command was issued.
This commit is contained in:
parent
b9cf4815e5
commit
7d3ed40070
3 changed files with 7 additions and 19 deletions
|
@ -106,7 +106,11 @@ void TELNETServerApp_Callback(void)
|
|||
{
|
||||
case 'c':
|
||||
TELNETServerApp_DisplayTCPConnections();
|
||||
break;
|
||||
break;
|
||||
default:
|
||||
strcpy(AppData, "Invalid Command.\r\n");
|
||||
uip_send(AppData, strlen(AppData));
|
||||
break;
|
||||
}
|
||||
|
||||
AppState->TELNETServer.NextState = TELNET_STATE_SendMenu;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue