# HG changeset patch # User Matt Johnston # Date 1373294552 -28800 # Node ID c936abfa99356363cc9a495bcb5852620c0486e2 # Parent 5de524aec047cf7e1a556b1de170183963cb9af1 strdup the proxycmd to avoid crash when freeing, from LluĂ­s Batlle i Rossell diff -r 5de524aec047 -r c936abfa9935 cli-runopts.c --- a/cli-runopts.c Tue May 28 22:16:57 2013 +0800 +++ b/cli-runopts.c Mon Jul 08 22:42:32 2013 +0800 @@ -383,6 +383,13 @@ 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) { cli_opts.remoteport = "22"; }