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.
This commit is contained in:
parent
54d529aac0
commit
69f3b6064e
|
@ -503,7 +503,7 @@ func (cl *Client) acceptConnections(l Listener) {
|
||||||
cl.rLock()
|
cl.rLock()
|
||||||
closed := cl.closed.IsSet()
|
closed := cl.closed.IsSet()
|
||||||
var reject error
|
var reject error
|
||||||
if conn != nil {
|
if !closed && conn != nil {
|
||||||
reject = cl.rejectAccepted(conn)
|
reject = cl.rejectAccepted(conn)
|
||||||
}
|
}
|
||||||
cl.rUnlock()
|
cl.rUnlock()
|
||||||
|
|
Loading…
Reference in New Issue