Skip to content

Commit 096c404

Browse files
committed
fixup! DTLS1.3: Implement RFC 9147 legacy_session_id_echo requirements
1 parent 47f95b2 commit 096c404

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/api/test_dtls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2645,7 +2645,7 @@ int test_dtls13_no_session_id_echo(void)
26452645
/* Ensure the session has a non-empty session ID so the ClientHello
26462646
* will have a populated legacy_session_id field (which is legal per
26472647
* RFC 9147). */
2648-
if (sess->sessionIDSz == 0) {
2648+
if (sess != NULL && sess->sessionIDSz == 0) {
26492649
sess->sessionIDSz = ID_LEN;
26502650
XMEMSET(sess->sessionID, 0x42, ID_LEN);
26512651
}

0 commit comments

Comments
 (0)