Skip to content

Commit

Permalink
Merge pull request #588 from h2o/kazuho/fix-path-challenge-logging
Browse files Browse the repository at this point in the history
fix incorrect logging of path challenge nonce
  • Loading branch information
kazuho authored Jul 31, 2024
2 parents 07c15d0 + 7d0e9b3 commit 36fa7ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/quicly.c
Original file line number Diff line number Diff line change
Expand Up @@ -6201,8 +6201,8 @@ static int handle_path_challenge_frame(quicly_conn_t *conn, struct st_quicly_han
if ((ret = quicly_decode_path_challenge_frame(&state->src, state->end, &frame)) != 0)
return ret;

QUICLY_PROBE(PATH_CHALLENGE_RECEIVE, conn, conn->stash.now, frame.data, sizeof(frame.data));
QUICLY_LOG_CONN(path_challenge_receive, conn, { PTLS_LOG_ELEMENT_HEXDUMP(data, frame.data, sizeof(frame.data)); });
QUICLY_PROBE(PATH_CHALLENGE_RECEIVE, conn, conn->stash.now, frame.data, QUICLY_PATH_CHALLENGE_DATA_LEN);
QUICLY_LOG_CONN(path_challenge_receive, conn, { PTLS_LOG_ELEMENT_HEXDUMP(data, frame.data, QUICLY_PATH_CHALLENGE_DATA_LEN); });

/* schedule the emission of PATH_RESPONSE frame */
struct st_quicly_conn_path_t *path = conn->paths[state->path_index];
Expand All @@ -6221,8 +6221,8 @@ static int handle_path_response_frame(quicly_conn_t *conn, struct st_quicly_hand
if ((ret = quicly_decode_path_challenge_frame(&state->src, state->end, &frame)) != 0)
return ret;

QUICLY_PROBE(PATH_RESPONSE_RECEIVE, conn, conn->stash.now, frame.data, sizeof(frame.data));
QUICLY_LOG_CONN(path_response_receive, conn, { PTLS_LOG_ELEMENT_HEXDUMP(data, frame.data, sizeof(frame.data)); });
QUICLY_PROBE(PATH_RESPONSE_RECEIVE, conn, conn->stash.now, frame.data, QUICLY_PATH_CHALLENGE_DATA_LEN);
QUICLY_LOG_CONN(path_response_receive, conn, { PTLS_LOG_ELEMENT_HEXDUMP(data, frame.data, QUICLY_PATH_CHALLENGE_DATA_LEN); });

struct st_quicly_conn_path_t *path = conn->paths[state->path_index];

Expand Down

0 comments on commit 36fa7ad

Please sign in to comment.