]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
removed redundant null termination
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 22 May 2014 18:37:50 +0000 (20:37 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 22 May 2014 18:37:50 +0000 (20:37 +0200)
lib/x509/common.c

index a0bb49a4f0973c1eff250074318851f779f39bbc..21c2d4fb9c5d7ec523122e3aef46874364d0aa15 100644 (file)
@@ -423,7 +423,7 @@ decode_complex_string(const struct oid_to_string *oentry, void *value,
        } else {
                out->data = td.data;
                out->size = td.size;
-               out->data[out->size] = 0;
+               /* _gnutls_x509_read_value always null terminates */
        }
 
        /* Refuse to deal with strings containing NULs. */