mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
p2p: prevent nil pointer dereference on connection closing
This commit is contained in:
parent
82e82eb4bf
commit
13fe3cbe6d
1 changed files with 1 additions and 1 deletions
|
|
@ -123,9 +123,9 @@ func (t *rlpxTransport) close(err error) {
|
|||
t.conn.Write(discMsg, t.wbuf.Bytes())
|
||||
}
|
||||
}
|
||||
}
|
||||
t.conn.Close()
|
||||
}
|
||||
}
|
||||
|
||||
func (t *rlpxTransport) doEncHandshake(prv *ecdsa.PrivateKey) (*ecdsa.PublicKey, error) {
|
||||
t.conn.SetDeadline(time.Now().Add(handshakeTimeout))
|
||||
|
|
|
|||
Loading…
Reference in a new issue