diff options
Diffstat (limited to 'finger')
-rw-r--r-- | finger/request.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/finger/request.go b/finger/request.go index fad7fee..a18ff7e 100644 --- a/finger/request.go +++ b/finger/request.go @@ -53,7 +53,7 @@ func ParseRequest(rdr io.Reader) (*sr.Request, error) { return nil, err } - if line[len(line)-2] != '\r' { + if len(line) < 2 || line[len(line)-2] != '\r' { return nil, InvalidFingerQuery } |