Skip to content
Snippets Groups Projects
Commit 80b515b8 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Initialize fd values in tor_port_check_forwarding to -1

parent 165aaf56
No related branches found
No related tags found
No related merge requests found
......@@ -3226,7 +3226,7 @@ tor_check_port_forwarding(const char *filename, int dir_port, int or_port,
/* Start the child, if it is not already running */
if (-1 == child_pid &&
time_to_run_helper < now) {
int fd_out, fd_err;
int fd_out=-1, fd_err=-1;
/* Assume tor-fw-helper will succeed, start it later*/
time_to_run_helper = now + TIME_TO_EXEC_FWHELPER_SUCCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment