Only try to open cc log when cc log directory has been set
@@ -1888,8 +1888,10 @@ picoquic_cnx_t* picoquic_create_cnx(picoquic_quic_t* quic,
if (cnx != NULL) {
picoquic_register_path(cnx, cnx->path[0]);
+ if (cnx->quic->cc_log_dir != NULL) {
picoquic_open_cc_dump(cnx);
}
+ }
return cnx;
}
