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
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}