diff --git a/client.go b/client.go index 1fdb410..f2591f5 100644 --- a/client.go +++ b/client.go @@ -429,7 +429,7 @@ func processResponse(cmd string, data *bufio.Reader) (returnObj *SpamDOut, err e lineStr = string(line) //TXT Table found, prepare to parse.. - if lineStr[0:4] == TABLE_MARK { + if len(lineStr) >= 4 && lineStr[0:4] == TABLE_MARK { section := []map[string]interface{}{} tt := 0