diff options
Diffstat (limited to 'lib/x509/pkcs7.c')
-rw-r--r-- | lib/x509/pkcs7.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/pkcs7.c b/lib/x509/pkcs7.c index a6466126f3..565c8ed80e 100644 --- a/lib/x509/pkcs7.c +++ b/lib/x509/pkcs7.c @@ -1115,7 +1115,7 @@ gnutls_x509_crt_t find_signer(gnutls_pkcs7_t pkcs7, gnutls_x509_trust_list_t tl, for (i = 0; i < (unsigned)count; i++) { /* Try to find the signer in the appended list. */ - ret = gnutls_pkcs7_get_crt_raw2(pkcs7, 0, &tmp); + ret = gnutls_pkcs7_get_crt_raw2(pkcs7, i, &tmp); if (ret < 0) { gnutls_assert(); goto fail; |