]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tpmtool: corrected key password read
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 8 Sep 2014 08:56:52 +0000 (10:56 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 8 Sep 2014 08:56:52 +0000 (10:56 +0200)
src/tpmtool.c

index 4deede0d05dc98bae6eb5c7bbb4d48676880c959..d4776bdbbceb7904fca5a9feb4f6b974f25b09fe 100644 (file)
@@ -183,7 +183,7 @@ static void tpm_generate(FILE * outfile, unsigned int key_type,
        if (!(flags & GNUTLS_TPM_REGISTER_KEY)) {
                key_pass = getpass("Enter key password: ");
                if (key_pass != NULL)
-                       key_pass = strdup(srk_pass);
+                       key_pass = strdup(key_pass);
        }
 
        ret =