1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

gpg: Fix segv introduced to commit 4d7c9b0.

* g10/keygen.c (get_parameter_passphrase): Take care of R == NULL.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2015-01-27 09:11:13 +01:00
parent 9453d645d4
commit 6eebc56687

View File

@ -2826,7 +2826,7 @@ static const char *
get_parameter_passphrase (struct para_data_s *para) get_parameter_passphrase (struct para_data_s *para)
{ {
struct para_data_s *r = get_parameter (para, pPASSPHRASE); struct para_data_s *r = get_parameter (para, pPASSPHRASE);
return r->u.value; return r ? r->u.value : NULL;
} }