Skip to content

Commit 0d7c7a6

Browse files
authored
Add retry delay and quic version to config
1 parent 5a3168d commit 0d7c7a6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/tool_cfgable.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ struct OperationConfig *config_alloc(void)
5252
config->ftp_skip_ip = TRUE;
5353
config->file_clobber_mode = CLOBBER_DEFAULT;
5454
config->upload_flags = CURLULFLAG_SEEN;
55+
config->retry_delay_ms = RETRY_SLEEP_DEFAULT;
56+
config->quic_version = 0; /* Default to 0, flag not used */
5557
curlx_dyn_init(&config->postdata, MAX_FILE2MEMORY);
5658
return config;
5759
}
@@ -189,7 +191,6 @@ static void free_config_fields(struct OperationConfig *config)
189191
tool_safefree(config->ech);
190192
tool_safefree(config->ech_config);
191193
tool_safefree(config->ech_public);
192-
tool_safefree(config->knownhosts);
193194
}
194195

195196
void config_free(struct OperationConfig *config)
@@ -259,7 +260,7 @@ static void free_globalconfig(void)
259260
tool_safefree(global->trace_dump);
260261

261262
if(global->trace_fopened && global->trace_stream)
262-
curlx_fclose(global->trace_stream);
263+
fclose(global->trace_stream);
263264
global->trace_stream = NULL;
264265

265266
tool_safefree(global->libcurl);

0 commit comments

Comments
 (0)