From e7be93e585f3f8e9e8fdf7bc42116cadeefffa7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Kripalani?= Date: Fri, 22 May 2020 11:35:26 +0100 Subject: [PATCH] Revert "fix a potential nil-pointer panic. (#158)" This reverts commit eda74852da7ddefc87b2c5db9ba34b2a7107f8cc. --- filtered_conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filtered_conn.go b/filtered_conn.go index d04abc5..c5f046e 100644 --- a/filtered_conn.go +++ b/filtered_conn.go @@ -51,7 +51,7 @@ func (c *filteredConn) ReadFrom(b []byte) (n int, addr net.Addr, rerr error) { connAddrs := &connAddrs{lmAddr: c.lmAddr, rmAddr: rmAddr} - if c.gater != nil && c.gater.InterceptAccept(connAddrs) { + if c.gater.InterceptAccept(connAddrs) { return } }