mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 09:10:50 +02:00
fixup! DTLS1.3: Implement RFC 9147 legacy_session_id_echo requirements
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user