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,8 +123,8 @@ func (t *rlpxTransport) close(err error) {
|
||||||
t.conn.Write(discMsg, t.wbuf.Bytes())
|
t.conn.Write(discMsg, t.wbuf.Bytes())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
t.conn.Close()
|
||||||
}
|
}
|
||||||
t.conn.Close()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *rlpxTransport) doEncHandshake(prv *ecdsa.PrivateKey) (*ecdsa.PublicKey, error) {
|
func (t *rlpxTransport) doEncHandshake(prv *ecdsa.PrivateKey) (*ecdsa.PublicKey, error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue