summaryrefslogtreecommitdiff
path: root/lib/x509/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/x509/common.c')
-rw-r--r--lib/x509/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/common.c b/lib/x509/common.c
index c6ef979d4a..cbee0d30f8 100644
--- a/lib/x509/common.c
+++ b/lib/x509/common.c
@@ -1067,7 +1067,7 @@ _gnutls_x509_decode_string(unsigned int etype,
if (len != (size_t) output->size) {
_gnutls_free_datum(output);
- ret = gnutls_assert_val(GNUTLS_E_ASN1_DER_ERROR);
+ ret = gnutls_assert_val(GNUTLS_E_ASN1_EMBEDDED_NULL_IN_STRING);
}
}