mirror of
https://github.com/clearml/dropbear
synced 2025-03-03 18:52:00 +00:00
Initialise agent_fd to -1 so we don't end up closing stdin (fd 0)
if public key authentication is disabled
This commit is contained in:
parent
2a02c4084a
commit
f4c4ca64a8
@ -140,6 +140,7 @@ void cli_getopts(int argc, char ** argv) {
|
||||
#endif
|
||||
#ifdef ENABLE_CLI_AGENTFWD
|
||||
cli_opts.agent_fwd = 0;
|
||||
cli_opts.agent_fd = -1;
|
||||
cli_opts.agent_keys_loaded = 0;
|
||||
#endif
|
||||
#ifdef ENABLE_CLI_PROXYCMD
|
||||
|
Loading…
Reference in New Issue
Block a user