From 60943ff9c322149920172b676aae97f0c78598c8 Mon Sep 17 00:00:00 2001 From: Daniel Adam Date: Fri, 2 Aug 2024 21:00:39 +0200 Subject: [PATCH] fixup! Fix segfault in State::serialize method --- conn.go | 1 + 1 file changed, 1 insertion(+) diff --git a/conn.go b/conn.go index 89d81826..49906367 100644 --- a/conn.go +++ b/conn.go @@ -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() {