diff options
-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 3ac9d3d10d..66789345d2 100644 --- a/lib/x509/pkcs7.c +++ b/lib/x509/pkcs7.c @@ -1068,7 +1068,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; |