X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/d4963650de01d908eea5792e2a8dd0f72ea9d582..e4cb16ddcd754840281ae01b3e554ada4672bdbd:/cmdgen.c diff --git a/cmdgen.c b/cmdgen.c index 13c9ca13..20c0d117 100644 --- a/cmdgen.c +++ b/cmdgen.c @@ -690,8 +690,8 @@ int main(int argc, char **argv) char *blob; int n, l, bloblen; - ret = rsakey_pubblob(&infilename, &vblob, &bloblen, NULL, - &error); + ret = rsakey_pubblob(&infilename, &vblob, &bloblen, + &origcomment, &error); blob = (char *)vblob; n = 4; /* skip modulus bits */ @@ -709,7 +709,7 @@ int main(int argc, char **argv) } else n += l; } - ssh1key->comment = NULL; + ssh1key->comment = dupstr(origcomment); ssh1key->private_exponent = NULL; } else { ret = loadrsakey(&infilename, ssh1key, passphrase, &error);