fixup! DTLS1.3: Implement RFC 9147 legacy_session_id_echo requirements

This commit is contained in:
Juliusz Sosinowicz
2026-03-30 17:48:10 +02:00
parent 362a374e73
commit 8b378bcfd1
+1 -1
View File
@@ -2763,7 +2763,7 @@ int test_dtls13_no_session_id_echo(void)
/* Ensure the session has a non-empty session ID so the ClientHello
* will have a populated legacy_session_id field (which is legal per
* RFC 9147). */
if (sess->sessionIDSz == 0) {
if (sess != NULL && sess->sessionIDSz == 0) {
sess->sessionIDSz = ID_LEN;
XMEMSET(sess->sessionID, 0x42, ID_LEN);
}