Skip to content

Commit

Permalink
Merge pull request #807 from i-hate-nicknames/fix/transport-setup-npe
Browse files Browse the repository at this point in the history
Fix nil pointer panic in transport setup
  • Loading branch information
jdknives authored Jun 9, 2021
2 parents 528bfcb + 9ced4f2 commit 4d724aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/transport/setup/visor.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func (ts *TransportListener) Serve(ctx context.Context) {
conn, err := lis.AcceptStream()
if err != nil {
ts.log.WithError(err).Error("failed to accept")
break
}
remotePK := conn.RawRemoteAddr().PK
found := false
Expand Down

0 comments on commit 4d724aa

Please sign in to comment.