keygen: Fix reading AEAD preference

* g10/keygen.c (keygen_set_std_prefs): Use the right variable when
  reading AEAD preference string
--

GnuPG-bug-id: 6019
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Jakub Jelen 2022-06-07 11:38:10 +02:00 committed by NIIBE Yutaka
parent fb3fd553df
commit 4dbef2addc
1 changed files with 1 additions and 1 deletions

View File

@ -568,7 +568,7 @@ keygen_set_std_prefs (const char *string,int personal)
for (i=0; i<naead; i++)
{
opt.personal_aead_prefs[i].type = PREFTYPE_AEAD;
opt.personal_aead_prefs[i].value = sym[i];
opt.personal_aead_prefs[i].value = aead[i];
}
opt.personal_aead_prefs[i].type = PREFTYPE_NONE;