diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-02-19 13:11:19 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-02-19 13:11:19 +0100 |
commit | e55a017924f71260a1c4ba9bf95448f7f7359b08 (patch) | |
tree | 88cc30ae56a780303fa6ea0d8687c369cff5808b /lib | |
parent | b63025e1955e34a179372699b0715b3542b0196d (diff) | |
download | gnutls-e55a017924f71260a1c4ba9bf95448f7f7359b08.tar.gz |
_gnutls_parse_general_name2() will return the expected data
Diffstat (limited to 'lib')
-rw-r--r-- | lib/x509/x509.c | 8 |
1 files changed, 3 insertions, 5 deletions
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; |