parse the correct frame id when encountering an unknown frame when logging
@@ -1322,7 +1322,7 @@ void picoquic_log_frames(FILE* F, uint64_t cnx_id64, uint8_t* bytes, size_t leng
default: {
/* Not implemented yet! */
uint64_t frame_id64;
- if (picoquic_varint_decode(bytes, length - byte_index, &frame_id64) > 0) {
+ if (picoquic_varint_decode(bytes + byte_index, length - byte_index, &frame_id64) > 0) {
fprintf(F, " Unknown frame, type: %llu\n", (unsigned long long)frame_id64);
} else {
fprintf(F, " Truncated frame type\n");
