summaryrefslogtreecommitdiff
path: root/finger
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-05-22 09:03:35 -0600
committertjpcc <tjp@ctrl-c.club>2023-05-22 09:03:35 -0600
commiteee03adc1b4ed1545da059613c4cff12b14d6306 (patch)
tree0b8c0253d5d230cea80e9c2c166948cc5eef3b72 /finger
parentd7ffcc43d12c58afdcd5f8498d8016bd35ed4823 (diff)
fix panic on bad finger requests
Diffstat (limited to 'finger')
-rw-r--r--finger/serve.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/finger/serve.go b/finger/serve.go
index 1bc69b8..6456763 100644
--- a/finger/serve.go
+++ b/finger/serve.go
@@ -45,6 +45,7 @@ func (fs *fingerServer) handleConn(conn net.Conn) {
request, err := ParseRequest(conn)
if err != nil {
_, _ = fmt.Fprint(conn, err.Error()+"\r\n")
+ return
}
request.Server = fs