@@ -3132,7 +3132,7 @@ static portBASE_TYPE prvTaskFTPCommand(cli_state_t *cli_state, int8_t *pcWriteBu
;
u16_t server_port_old = sSettings.sFTPUpdate.server_port;
int temp = atoi(str);
- if (temp < 0 || temp > 65535) {
+ if (temp < 1 || temp > 65535) {
strcpy((char *)pcWriteBuffer, (const char *)pcInvalidCommand);
return pdFALSE;
} else {