From c9bdcd962b2df2a738687be6731540af90084762 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 19 May 2001 15:59:02 +0000 Subject: [PATCH] Make sure the default protocol doesn't ever end up undefined in Plink. git-svn-id: svn://svn.tartarus.org/sgt/putty@1140 cda61777-01e9-0310-a592-d414129be87e --- plink.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plink.c b/plink.c index 17b81550..3de6af2a 100644 --- a/plink.c +++ b/plink.c @@ -289,6 +289,12 @@ int main(int argc, char **argv) sklist = NULL; skcount = sksize = 0; + /* + * Initialise port and protocol to sensible defaults. (These + * will be overridden by more or less anything.) + */ + default_protocol = PROT_SSH; + default_port = 22; flags = FLAG_STDERR; /* -- 2.11.0