Skip to content

Commit

Permalink
Chroe: remove unnecessary copy of tunnel/tls
Browse files Browse the repository at this point in the history
  • Loading branch information
fregie committed May 31, 2021
1 parent ce2738e commit a14f492
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tunnel/tls/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ func (s *Server) acceptLoop() {
if s.verifySNI && !matched {
return nil, common.NewError("sni mismatched: " + hello.ServerName + ", expected: " + s.sni)
}
keyPairCopied := &s.keyPair[0]
return keyPairCopied, nil
return &s.keyPair[0], nil
},
}

Expand Down

0 comments on commit a14f492

Please sign in to comment.