ensure that there is no time underflow in picoquic_prepare_segment
@@ -2881,7 +2881,7 @@ int picoquic_prepare_segment(picoquic_cnx_t* cnx, picoquic_path_t ** path, picoq
/* Check that the connection is still alive -- the timer is asymmetric, so client will drop faster */
if ((cnx->cnx_state < picoquic_state_disconnecting &&
- (current_time - cnx->latest_progress_time) >= (PICOQUIC_MICROSEC_SILENCE_MAX*(2 - cnx->client_mode))) ||
+ current_time >= cnx->latest_progress_time && (current_time - cnx->latest_progress_time) >= (PICOQUIC_MICROSEC_SILENCE_MAX*(2 - cnx->client_mode))) ||
(cnx->cnx_state < picoquic_state_client_ready &&
current_time >= cnx->start_time + PICOQUIC_MICROSEC_HANDSHAKE_MAX))
{
