Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed Aug 8, 2023
1 parent e3e11fc commit 135a2c8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/picotls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1872,10 +1872,9 @@ static int send_session_ticket(ptls_t *tls, ptls_message_emitter_t *emitter)
tls->ctx->random_bytes(&ticket_age_add, sizeof(ticket_age_add));

/* build the raw nsk */
if (tls->key_share != NULL &&
(ret = encode_session_identifier(tls->ctx, &session_id, ticket_age_add, ptls_iovec_init(NULL, 0), tls->key_schedule,
tls->server_name, tls->key_share->id, tls->cipher_suite->id,
tls->negotiated_protocol)) != 0)
if (tls->key_share != NULL && (ret = encode_session_identifier(tls->ctx, &session_id, ticket_age_add, ptls_iovec_init(NULL, 0),
tls->key_schedule, tls->server_name, tls->key_share->id,
tls->cipher_suite->id, tls->negotiated_protocol)) != 0)
goto Exit;

/* encrypt and send */
Expand Down

0 comments on commit 135a2c8

Please sign in to comment.