1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-09 23:39:51 +02:00

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

View File

@ -568,7 +568,7 @@ keygen_set_std_prefs (const char *string,int personal)
for (i=0; i<naead; i++) for (i=0; i<naead; i++)
{ {
opt.personal_aead_prefs[i].type = PREFTYPE_AEAD; 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; opt.personal_aead_prefs[i].type = PREFTYPE_NONE;