gpg: Avoid potential downgrade to SHA1 in 3rd party key signatures.
* g10/sig-check.c (check_signature_over_key_or_uid): Always initialize IS_SELFSIG because it is later used to detect SHA1 non-selfsignatures.
The value of is_selfsig was also used to decide whether to reject a a
SHA_signature if it is not a self-signature. However, a code path
exists where is_selfsig was set to stub_is_selfsig and not initilaized
in this case.
- Fixes-commit: edc36f59fcfcb4b896a53530345d586f7e5df560
- Reported-by: 8b79fe4dd0581c1cd000e1fbecba9f39e16a396a