Make sure that NGTCP2_CONN_FLAG_PPE_PENDING is not leaked
@@ -9819,6 +9819,8 @@ int ngtcp2_conn_read_pkt_versioned(ngtcp2_conn *conn, const ngtcp2_path *path,
const ngtcp2_pkt_info zero_pi = {0};
(void)pkt_info_version;
+ assert(!(conn->flags & NGTCP2_CONN_FLAG_PPE_PENDING));
+
conn->log.last_ts = ts;
conn->qlog.last_ts = ts;
@@ -10880,6 +10882,8 @@ int ngtcp2_conn_handle_expiry(ngtcp2_conn *conn, ngtcp2_tstamp ts) {
int rv;
ngtcp2_duration pto = conn_compute_pto(conn, &conn->pktns);
+ assert(!(conn->flags & NGTCP2_CONN_FLAG_PPE_PENDING));
+
if (ngtcp2_conn_get_idle_expiry(conn) <= ts) {
return NGTCP2_ERR_IDLE_CLOSE;
}
