gpg: Fix buglet in the check_all_keysigs function.
authorWerner Koch <wk@gnupg.org>
Mon, 9 May 2016 19:07:40 +0000 (21:07 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 9 May 2016 19:16:23 +0000 (21:16 +0200)
commit693838f0125d5d0c963fa3771b1bd117702af697
treea49633d0a5a8261804fe49aa05dcf6c393fb5287
parentd33b35f7481caa0dcb25f9fa7d6c5bb27895297a
gpg: Fix buglet in the check_all_keysigs function.

* g10/keyedit.c (sig_comparison): Actually compare the pubkey
algorithms.
--

This fixes two bugs: The first was a typo which led to us comparing A
with A.  The second problem was the use of an assert at a place where
this can't be asserted: Two signature may have different algorithms;
they won't verify but after all it is about corrupted signatures.

Reported-by: Guilhem Moulin <guilhem@fripost.org>
GnuPG-bug-id: 2236
Signed-off-by: Werner Koch <wk@gnupg.org>
g10/keyedit.c