Skip to content

Commit

Permalink
fixup! Fix segfault in State::serialize method
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielius1922 committed Aug 2, 2024
1 parent fa7566a commit 60943ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ func (c *Conn) Close() error {
}

// ConnectionState returns basic DTLS details about the connection.
// If a handshake has not yet been completed, ConnectionState returns nil.
// Note that this replaced the `Export` function of v1.
func (c *Conn) ConnectionState() *State {
if !c.isHandshakeCompletedSuccessfully() {
Expand Down

0 comments on commit 60943ff

Please sign in to comment.