diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2020-11-12 08:45:03 +0100 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2020-11-12 13:48:23 +0100 |
commit | 59782d147580956a0751bd975eab5a7736a72baf (patch) | |
tree | 4e1acd5c63d5aa8342aa396e4df1d6069d3d4519 /lib/x509/x509.c | |
parent | 8c35ab1a25268d4a4935cb915eb1c1b5a18a3dca (diff) | |
download | gnutls-59782d147580956a0751bd975eab5a7736a72baf.tar.gz |
_gnutls_x509_read_value: don't count terminating null byte for OIDs
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Co-authored-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'lib/x509/x509.c')
-rw-r--r-- | lib/x509/x509.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/x509/x509.c b/lib/x509/x509.c index c713f857a0..71a543e56d 100644 --- a/lib/x509/x509.c +++ b/lib/x509/x509.c @@ -1776,12 +1776,6 @@ _gnutls_parse_general_name2(ASN1_TYPE src, const char *src_name, return ret; } - if (type == GNUTLS_SAN_REGISTERED_ID && tmp.size > 0) { - /* see #805; OIDs contain the null termination byte */ - assert(tmp.data[tmp.size-1] == 0); - tmp.size--; - } - /* _gnutls_x509_read_value() null terminates */ dname->size = tmp.size; dname->data = tmp.data; |