mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +00:00
strdup the proxycmd to avoid crash when freeing, from Lluís Batlle i Rossell
This commit is contained in:
parent
ded40babb5
commit
aeea70f95f
@ -383,6 +383,13 @@ void cli_getopts(int argc, char ** argv) {
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ENABLE_CLI_PROXYCMD
|
||||||
|
if (cli_opts.proxycmd) {
|
||||||
|
/* To match the common path of m_freeing it */
|
||||||
|
cli_opts.proxycmd = m_strdup(cli_opts.proxycmd);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (cli_opts.remoteport == NULL) {
|
if (cli_opts.remoteport == NULL) {
|
||||||
cli_opts.remoteport = "22";
|
cli_opts.remoteport = "22";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user