]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/uxpgnt.c
uxpgnt: fix an uninitialised structure field in find_key().
[PuTTY.git] / unix / uxpgnt.c
index d0d69600a58014918d8d6a861ad13c2c4801286c..a4bc6b9389b0ff09e7b7bc7fdcc5dc9fa3ebf087 100644 (file)
@@ -551,6 +551,7 @@ struct pageant_pubkey *find_key(const char *string, char **retstr)
              * list things.
              */
             key_in.ssh_version = 1;
+            key_in.comment = NULL;
             key_ret = pageant_pubkey_copy(&key_in);
             sfree(key_in.blob);
             filename_free(fn);
@@ -577,6 +578,7 @@ struct pageant_pubkey *find_key(const char *string, char **retstr)
              * list things.
              */
             key_in.ssh_version = 2;
+            key_in.comment = NULL;
             key_ret = pageant_pubkey_copy(&key_in);
             sfree(key_in.blob);
             filename_free(fn);