mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Fix condition of string_to_aead_algo.
* g10/misc.c (string_to_aead_algo): Only compare if not NULL. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
cc0d53905c
commit
1d66b518ca
1 changed files with 1 additions and 1 deletions
|
@ -1216,7 +1216,7 @@ string_to_aead_algo (const char *string)
|
|||
|
||||
if (!string)
|
||||
result = 0;
|
||||
if (!ascii_strcasecmp (string, "EAX"))
|
||||
else if (!ascii_strcasecmp (string, "EAX"))
|
||||
result = 1;
|
||||
else if (!ascii_strcasecmp (string, "OCB"))
|
||||
result = 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue