From 7d0e9b3a34852b8a580fc4b4f2f9a2039c250105 Mon Sep 17 00:00:00 2001 From: Kazuho Oku Date: Wed, 31 Jul 2024 10:38:12 +0900 Subject: [PATCH] size of nonce is 8 bytes, not size of a pointer --- lib/quicly.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/quicly.c b/lib/quicly.c index ac90462f..832c8567 100644 --- a/lib/quicly.c +++ b/lib/quicly.c @@ -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]; @@ -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];