From e55a017924f71260a1c4ba9bf95448f7f7359b08 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 19 Feb 2014 13:11:19 +0100 Subject: _gnutls_parse_general_name2() will return the expected data --- lib/x509/x509.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/x509/x509.c b/lib/x509/x509.c index 24722cff2b..fa3fb1307e 100644 --- a/lib/x509/x509.c +++ b/lib/x509/x509.c @@ -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; -- cgit v1.2.1