Skip to content

Commit 8b378bc

Browse files
committed
fixup! DTLS1.3: Implement RFC 9147 legacy_session_id_echo requirements
1 parent 362a374 commit 8b378bc

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
@@ -2763,7 +2763,7 @@ int test_dtls13_no_session_id_echo(void)
27632763
/* Ensure the session has a non-empty session ID so the ClientHello
27642764
* will have a populated legacy_session_id field (which is legal per
27652765
* RFC 9147). */
2766-
if (sess->sessionIDSz == 0) {
2766+
if (sess != NULL && sess->sessionIDSz == 0) {
27672767
sess->sessionIDSz = ID_LEN;
27682768
XMEMSET(sess->sessionID, 0x42, ID_LEN);
27692769
}

0 commit comments

Comments
 (0)