Skip to content

Commit

Permalink
Update lib/picotls.c
Browse files Browse the repository at this point in the history
Co-authored-by: Kazuho Oku <[email protected]>
  • Loading branch information
robguima and kazuho authored Feb 25, 2024
1 parent a1a3559 commit 266a066
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 @@ -1630,7 +1630,7 @@ static int setup_traffic_protection(ptls_t *tls, int is_enc, const char *secret_

ctx->epoch = epoch;

if (tls->key_schedule)
if (tls->key_schedule != NULL)
log_secret(tls, log_labels[ptls_is_server(tls) == is_enc][epoch],
ptls_iovec_init(ctx->secret, tls->key_schedule->hashes[0].algo->digest_size));

Expand Down

0 comments on commit 266a066

Please sign in to comment.