From 69f3b6064eeeb69b2d86269f74274a0c0baee9cc Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 1 Dec 2021 15:02:36 +1100 Subject: [PATCH] Don't use the Client's IP blocklist after the Client is closed Fixes a segfault due to using a memory mapped blocklist in confluence. --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index be11a81a..bd03da35 100644 --- a/client.go +++ b/client.go @@ -503,7 +503,7 @@ func (cl *Client) acceptConnections(l Listener) { cl.rLock() closed := cl.closed.IsSet() var reject error - if conn != nil { + if !closed && conn != nil { reject = cl.rejectAccepted(conn) } cl.rUnlock()