diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-01-08 16:12:22 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-01-08 16:12:22 +0100 |
commit | 89aa5bb111a3e7646d6d346945a1d64a70f0eb2c (patch) | |
tree | 76fe4b5f188ea71605fd994be4e6c66a330c194c /lib | |
parent | ed211d7c9b6e186106870e24a9e60f9b5b952a03 (diff) | |
download | libtasn1-89aa5bb111a3e7646d6d346945a1d64a70f0eb2c.tar.gz |
asn1_array2tree: always null terminate errorDescription
Diffstat (limited to 'lib')
-rw-r--r-- | lib/structure.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/structure.c b/lib/structure.c index ffb6aa5..eec10db 100644 --- a/lib/structure.c +++ b/lib/structure.c @@ -183,6 +183,8 @@ asn1_array2tree (const asn1_static_node * array, asn1_node * definitions, int result; unsigned int type; + if (errorDescription) + errorDescription[0] = 0; if (*definitions != NULL) return ASN1_ELEMENT_NOT_EMPTY; |