]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls_x509_crt_get_policy() allows for a list of zero policy qualifiers.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 26 Nov 2012 17:51:37 +0000 (18:51 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 26 Nov 2012 17:51:37 +0000 (18:51 +0100)
NEWS
lib/x509/x509.c

diff --git a/NEWS b/NEWS
index d85daa30713cfc38590e4919c5f7fc4725703adb..75eefb5d61a33fb3c7b4a6974af5c8b2ad3a45e9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,9 @@ See the end for copying conditions.
 
 ** libgnutls: Several updates in the ASN.1 string handling subsystem.
 
+** libgnutls: gnutls_x509_crt_get_policy() allows for a list of zero
+policy qualifiers.
+
 ** API and ABI modifications:
 No changes since last version.
 
index 7d00a83867fd3b85b271d6c9951d3be9455ae312..4ece36232787f9e23bb6f06a1563b150dd8dfad2 100644 (file)
@@ -1967,7 +1967,7 @@ gnutls_x509_crt_get_policy (gnutls_x509_crt_t crt, int indx,
       len = sizeof(tmpoid);
       ret = asn1_read_value(c2, tmpstr, tmpoid, &len);
       
-      if (ret == ASN1_ELEMENT_NOT_FOUND && i > 0)
+      if (ret == ASN1_ELEMENT_NOT_FOUND)
         break; /* finished */
       
       if (ret != ASN1_SUCCESS)