Skip to content

Commit

Permalink
Merge pull request #847 from ersonp/fix/nil-pointer
Browse files Browse the repository at this point in the history
Fix nil pointer exception
  • Loading branch information
jdknives committed Jul 28, 2021
2 parents 0a95f20 + 93810e0 commit aa0aa83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/transport/network/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ func (c *genericClient) wrapConn(rawConn net.Conn, hs handshake.Handshake, initi
conn, err := doHandshake(rawConn, hs, c.netType, c.log)
if err != nil {
onClose()
return nil, err
}
conn.freePort = onClose
c.log.Infof("Sent handshake to %v, local addr %v, remote addr %v", rawConn.RemoteAddr(), conn.lAddr, conn.rAddr)
Expand Down

0 comments on commit aa0aa83

Please sign in to comment.