From e4bd42f98f7da0ac49cdea579d1e43be64c0621f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 11 Aug 2017 13:55:41 +0200 Subject: Disallow SSH host names starting with a dash --- src/libstore/ssh.hh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/libstore/ssh.hh') diff --git a/src/libstore/ssh.hh b/src/libstore/ssh.hh index 18dea227ad1f..1268e6d00054 100644 --- a/src/libstore/ssh.hh +++ b/src/libstore/ssh.hh @@ -28,14 +28,7 @@ private: public: - SSHMaster(const std::string & host, const std::string & keyFile, bool useMaster, bool compress, int logFD = -1) - : host(host) - , keyFile(keyFile) - , useMaster(useMaster) - , compress(compress) - , logFD(logFD) - { - } + SSHMaster(const std::string & host, const std::string & keyFile, bool useMaster, bool compress, int logFD = -1); struct Connection { -- cgit 1.4.1