From e235ee014eb142631cc1fff78079240099873fa4 Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 27 May 2017 13:57:37 +1200 Subject: [PATCH] fix wrong bounds check causing panic when server gets scanned by weird clients --HG-- branch : nmdc-ircfrontend --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 4f0bcf8..bb3b1ec 100644 --- a/server.go +++ b/server.go @@ -133,7 +133,7 @@ func (s *Server) RunWorker() { // Client sent a command fields := strings.Fields(string(line)) - if len(fields) < 1 { + if len(fields) < 2 { return }