Skip to content

Commit

Permalink
in case of external PSK mode, clients need not provide properties
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepybishop authored and kazuho committed Dec 21, 2024
1 parent 4ab6fda commit 1c8550e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/picotls.c
Original file line number Diff line number Diff line change
Expand Up @@ -2383,7 +2383,7 @@ static int send_client_hello(ptls_t *tls, ptls_message_emitter_t *emitter, ptls_
}
}
assert(tls->cipher_suite != NULL && "no compatible cipher-suite provided that matches psk.hash");
if (properties->client.max_early_data_size != NULL) {
if (properties != NULL && properties->client.max_early_data_size != NULL) {
tls->client.using_early_data = 1;
*properties->client.max_early_data_size = SIZE_MAX;
}
Expand Down

0 comments on commit 1c8550e

Please sign in to comment.