look at index i, not 0
authorAlan T. DeKok <aland@freeradius.org>
Thu, 1 Sep 2016 19:22:32 +0000 (15:22 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 1 Sep 2016 19:31:49 +0000 (15:31 -0400)
src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.c

index 19a94b7..d68e745 100644 (file)
@@ -290,7 +290,7 @@ static int ocsp_parse_cert_url(X509 *cert, char **phost, char **pport,
        aia = X509_get_ext_d2i(cert, NID_info_access, NULL, NULL);
 
        for (i = 0; i < sk_ACCESS_DESCRIPTION_num(aia); i++) {
-               ad = sk_ACCESS_DESCRIPTION_value(aia, 0);
+               ad = sk_ACCESS_DESCRIPTION_value(aia, i);
                if (OBJ_obj2nid(ad->method) == NID_ad_OCSP) {
                        if (ad->location->type == GEN_URI) {
                                if(OCSP_parse_url(ad->location->d.ia5->data,