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:
parent
9453d645d4
commit
6eebc56687
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user