Skip to content

Commit

Permalink
Send empty keyshare extension instead of leaving it out (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwesterb authored Oct 10, 2023
1 parent 1bb2f30 commit 3086991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/tls/handshake_messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (m *clientHelloMsg) marshal() ([]byte, error) {
})
})
}
if len(m.keyShares) > 0 {
if m.keyShares != nil {
// RFC 8446, Section 4.2.8
exts.AddUint16(extensionKeyShare)
exts.AddUint16LengthPrefixed(func(exts *cryptobyte.Builder) {
Expand Down

0 comments on commit 3086991

Please sign in to comment.