]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
_gnutls_parse_general_name2() will return the expected data
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 19 Feb 2014 12:11:19 +0000 (13:11 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 19 Feb 2014 12:11:19 +0000 (13:11 +0100)
lib/x509/x509.c

index 24722cff2bfa7ba25d1fca662bbb3883125482c4..fa3fb1307e9080d24881bdef9f4512ddf76b2cd8 100644 (file)
@@ -1240,11 +1240,9 @@ _gnutls_parse_general_name2(ASN1_TYPE src, const char *src_name,
                        return ret;
                }
 
-               if (is_type_printable(type)) {
-                       /* _gnutls_x509_read_value() null terminates */
-                       dname->size = tmp.size;
-                       dname->data = tmp.data;
-               }
+               /* _gnutls_x509_read_value() null terminates */
+               dname->size = tmp.size;
+               dname->data = tmp.data;
        }
 
        return type;