fix wrong bounds check causing panic when server gets scanned by weird clients

--HG--
branch : nmdc-ircfrontend
This commit is contained in:
mappu 2017-05-27 13:57:37 +12:00
parent c54a271f17
commit e235ee014e

View File

@ -133,7 +133,7 @@ func (s *Server) RunWorker() {
// Client sent a command // Client sent a command
fields := strings.Fields(string(line)) fields := strings.Fields(string(line))
if len(fields) < 1 { if len(fields) < 2 {
return return
} }