Skip to content

Commit

Permalink
Fix all-zeroes SessionID (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
rod-hynes authored and sergeyfrolov committed Aug 12, 2019
1 parent 3298794 commit 4da6795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion u_conn.go
Expand Up @@ -121,7 +121,7 @@ func (uconn *UConn) SetSessionState(session *ClientSessionState) error {
}
}
var sessionID [32]byte
_, err := io.ReadFull(uconn.config.rand(), uconn.HandshakeState.Hello.SessionId)
_, err := io.ReadFull(uconn.config.rand(), sessionID[:])
if err != nil {
return err
}
Expand Down

0 comments on commit 4da6795

Please sign in to comment.