1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-10 21:38:50 +01:00

gpg,sm: Remove unnecessary duplicated checks

--

Reported-by: Günther Noack <gnoack@google.com>
This commit is contained in:
Werner Koch 2015-01-23 15:30:03 +01:00
parent da4db172f6
commit 297b1a0d15
2 changed files with 2 additions and 2 deletions

View File

@ -2659,7 +2659,7 @@ ask_user_id (int mode, int full, KBNODE keyblock)
xfree(answer);
}
xfree(answer);
if( !amail && !acomment && !amail )
if (!amail && !acomment)
break;
xfree(uid); uid = NULL;
}

View File

@ -467,7 +467,7 @@ gpgsm_verify (ctrl_t ctrl, int in_fd, int data_fd, estream_t out_fp)
s = gcry_md_read (data_md, algo);
if ( !s || !msgdigestlen
|| gcry_md_get_algo_dlen (algo) != msgdigestlen
|| !s || memcmp (s, msgdigest, msgdigestlen) )
|| memcmp (s, msgdigest, msgdigestlen) )
{
char *fpr;