From ed05b112a5e3d36ce84942abc60264c6027fe3de Mon Sep 17 00:00:00 2001 From: agc Date: Tue, 4 Mar 2014 17:29:06 +0000 Subject: [PATCH] check the correct field in the structure in dsa_verify - pointed out by joerg - thanks! --- crypto/external/bsd/netpgp/dist/src/libverify/libverify.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crypto/external/bsd/netpgp/dist/src/libverify/libverify.c b/crypto/external/bsd/netpgp/dist/src/libverify/libverify.c index 7ef134e3fc93..60ec7238d2c0 100644 --- a/crypto/external/bsd/netpgp/dist/src/libverify/libverify.c +++ b/crypto/external/bsd/netpgp/dist/src/libverify/libverify.c @@ -1609,7 +1609,9 @@ verify_dsa_sig(uint8_t *calculated, unsigned calclen, pgpv_bignum_t *sig, pgpv_p BIGNUM *t1; int ret; - if (pubkey[DSA_P].bn == NULL || pubkey[DSA_Q].bn == NULL || pubkey[DSA_G].bn == NULL) { + if (pubkey->bn[DSA_P].bn == NULL || + pubkey->bn[DSA_Q].bn == NULL || + pubkey->bn[DSA_G].bn == NULL) { return 0; } M = W = t1 = NULL;