Key generation error
Werner Koch
wk at gnupg.org
Thu Jan 29 08:16:41 CET 2015
On Thu, 29 Jan 2015 08:01, patrick at enigmail.net said:
> I tried key generation with and without pre-setting a password using git
> commit 11142e0ad7bc9a9e3c3dccf958d8dbd3312cb993.
Are you at that commit or at current head? In particualr this commit
commit 6eebc56687935f3e993eac374b9f4cc5ad3bcf2b
Author: Werner Koch <wk at gnupg.org>
Date: Tue Jan 27 09:11:13 2015 +0100
gpg: Fix segv introduced to commit 4d7c9b0.
* g10/keygen.c (get_parameter_passphrase): Take care of R == NULL.
Signed-off-by: Werner Koch <wk at gnupg.org>
Modified g10/keygen.c
diff --git a/g10/keygen.c b/g10/keygen.c
index 6143269..50fb67d 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -2826,7 +2826,7 @@ static const char *
get_parameter_passphrase (struct para_data_s *para)
{
struct para_data_s *r = get_parameter (para, pPASSPHRASE);
- return r->u.value;
+ return r ? r->u.value : NULL;
}
is important.
Shalom-Salam,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
More information about the Gnupg-devel
mailing list