mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Initialize fd values in tor_port_check_forwarding to -1
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user