X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/d0718310cebfcc7b26136d53cc63e1cca2060e5c..1cb2aa4545189dc3fd196b8228e25bd20e700d8a:/plink.c 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; /*