Old_path may be NULL
@@ -804,7 +804,7 @@ int picoquic_retransmit_needed(picoquic_cnx_t* cnx,
picoquic_path_t * old_path = p->send_path;
/* we'll report it where it got lost */
- old_path->retrans_count++;
+ if (old_path) old_path->retrans_count++;
*header_length = 0;
