Skip to content

Commit 3086991

Browse files
authored
Send empty keyshare extension instead of leaving it out (#163)
1 parent 1bb2f30 commit 3086991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/tls/handshake_messages.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func (m *clientHelloMsg) marshal() ([]byte, error) {
248248
})
249249
})
250250
}
251-
if len(m.keyShares) > 0 {
251+
if m.keyShares != nil {
252252
// RFC 8446, Section 4.2.8
253253
exts.AddUint16(extensionKeyShare)
254254
exts.AddUint16LengthPrefixed(func(exts *cryptobyte.Builder) {

0 commit comments

Comments
 (0)