Fix CONNECTION_CLOSE logging
@@ -261,7 +261,7 @@ static void log_fr_connection_close(ngtcp2_log *log, const ngtcp2_pkt_hd *hd,
" CONNECTION_CLOSE(0x%02x) error_code=%s(0x%04x) "
"frame_type=%u reason_len=%" PRIu64 "\n"),
NGTCP2_LOG_FRM_HD_FIELDS(dir), fr->type,
- hd->type == NGTCP2_FRAME_CONNECTION_CLOSE
+ fr->type == NGTCP2_FRAME_CONNECTION_CLOSE
? strerrorcode(fr->error_code)
: strapperrorcode(fr->error_code),
fr->error_code, fr->frame_type, fr->reasonlen);
