Fix TELNET server locking up if an invalid command was issued.

This commit is contained in:
Dean Camera committed 2010-02-03 13:08:37 +00:00
1 parent b9cf4815e5
commit 7d3ed40070
3 files changed
+7 -19

No files matched your search

+5 -1
View File
@@ -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;