Fix ACK frame only packet header is not logged
@@ -1526,7 +1526,7 @@ static ssize_t conn_write_handshake_pkt(ngtcp2_conn *conn, uint8_t *dest,
}
if (ackfr) {
- rv = conn_ppe_write_frame(conn, &ppe, &hd, ackfr);
+ rv = conn_ppe_write_frame_hd_log(conn, &ppe, &hd_logged, &hd, ackfr);
if (rv != 0) {
assert(NGTCP2_ERR_NOBUF == rv);
} else {
@@ -2242,7 +2242,7 @@ static ssize_t conn_write_pkt(ngtcp2_conn *conn, uint8_t *dest, size_t destlen,
}
if (ackfr) {
- rv = conn_ppe_write_frame(conn, &ppe, &hd, ackfr);
+ rv = conn_ppe_write_frame_hd_log(conn, &ppe, &hd_logged, &hd, ackfr);
if (rv != 0) {
assert(NGTCP2_ERR_NOBUF == rv);
} else {
