diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-09-20 18:51:54 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-09-20 23:37:12 +0200 |
commit | 1b557d301a1482a11184a54172900a280d1f6996 (patch) | |
tree | 6579190a12995e61d73d6e3ab6b1c516659ca5fd /lib/x509/dn.c | |
parent | 77e104b8c5e0040c38d68f604cce59025ce10243 (diff) | |
download | gnutls-1b557d301a1482a11184a54172900a280d1f6996.tar.gz |
Corrected issues
Diffstat (limited to 'lib/x509/dn.c')
-rw-r--r-- | lib/x509/dn.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/x509/dn.c b/lib/x509/dn.c index 810c015cbf..5152691d33 100644 --- a/lib/x509/dn.c +++ b/lib/x509/dn.c @@ -178,6 +178,12 @@ _gnutls_x509_parse_dn (ASN1_TYPE asn1_struct, len = 0; result = asn1_read_value (asn1_struct, tmpbuffer3, NULL, &len); + if (result != ASN1_MEM_ERROR) + { + gnutls_assert (); + result = _gnutls_asn2err (result); + goto cleanup; + } value2 = gnutls_malloc (len); if (value2 == NULL) |