Fix sftp when nonstandard port is specified in ssh config

(cherry picked from commit 073dc86ace)
v3.5.13-sru
Timothy Pearson 13 years ago committed by Slávek Banko
parent 0d8f014e25
commit 33d5f26e9e

@ -481,11 +481,7 @@ void sftpProtocol::setHost (const TQString& h, int port, const TQString& user, c
if( port > 0 )
mPort = port;
else {
struct servent *pse;
if( (pse = getservbyname("ssh", "tcp") ) == NULL )
mPort = 22;
else
mPort = ntohs(pse->s_port);
mPort = -1;
}
mUsername = user;

Loading…
Cancel
Save