mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-02-13 10:21:50 +00:00
Merge pull request #570 from Arceliar/bugfix
fix nil pointer dereference in yggdrasil.Conn.search
This commit is contained in:
commit
5ae1503c5b
1 changed files with 6 additions and 6 deletions
|
@ -115,12 +115,12 @@ func (c *Conn) search() error {
|
|||
default:
|
||||
if sinfo != nil {
|
||||
// Finish initializing the session
|
||||
sinfo.setConn(nil, c)
|
||||
}
|
||||
c.session = sinfo
|
||||
c.nodeID = crypto.GetNodeID(&c.session.theirPermPub)
|
||||
for i := range c.nodeMask {
|
||||
c.nodeMask[i] = 0xFF
|
||||
c.session = sinfo
|
||||
c.session.setConn(nil, c)
|
||||
c.nodeID = crypto.GetNodeID(&c.session.theirPermPub)
|
||||
for i := range c.nodeMask {
|
||||
c.nodeMask[i] = 0xFF
|
||||
}
|
||||
}
|
||||
err = e
|
||||
close(done)
|
||||
|
|
Loading…
Reference in a new issue