Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sshock committed Jul 26, 2023
1 parent 6e37a7e commit 46cbf7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/picotls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,9 @@ static int commission_handshake_secret(ptls_t *tls)

static void log_client_random(ptls_t *tls)
{
#if PICOTLS_USE_DTRACE
char buf[sizeof(tls->client_random) * 2 + 1];
#endif

PTLS_PROBE(CLIENT_RANDOM, tls, ptls_hexdump(buf, tls->client_random, sizeof(tls->client_random)));
PTLS_LOG_CONN(client_random, tls, { PTLS_LOG_ELEMENT_HEXDUMP(bytes, tls->client_random, sizeof(tls->client_random)); });
Expand Down

0 comments on commit 46cbf7a

Please sign in to comment.