Make sure the default protocol doesn't ever end up undefined in Plink.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 19 May 2001 15:59:02 +0000 (15:59 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 19 May 2001 15:59:02 +0000 (15:59 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@1140 cda61777-01e9-0310-a592-d414129be87e

plink.c

diff --git a/plink.c b/plink.c
index 17b8155..3de6af2 100644 (file)
--- 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;
     /*