don't die if F is null
@@ -1836,6 +1836,7 @@ void picoquic_log_transport_extension(FILE* F, picoquic_cnx_t* cnx, int log_cnxi
void picoquic_log_congestion_state(FILE* F, picoquic_cnx_t* cnx, uint64_t current_time)
{
+ if (F != NULL) {
picoquic_path_t * path_x = cnx->path[0];
fprintf(F, "%" PRIx64 ": ", picoquic_val64_connection_id(picoquic_get_logging_cnxid(cnx)));
@@ -1849,6 +1850,7 @@ void picoquic_log_congestion_state(FILE* F, picoquic_cnx_t* cnx, uint64_t curren
fprintf(F, "max_ack_delay: %d,", (int)path_x->max_ack_delay);
fprintf(F, "state: %d\n", (int)cnx->cnx_state);
}
+}
/*
From TLS 1.3 spec:
