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.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/x509/common.c b/lib/x509/common.c
index 60d7487d20..5aab61a833 100644
--- a/lib/x509/common.c
+++ b/lib/x509/common.c
@@ -735,12 +735,6 @@ ASN1_TYPE c2 = ASN1_TYPE_EMPTY;
res->data = data;
res->size = size;
-
- if (result != ASN1_SUCCESS) {
- gnutls_assert();
- return _gnutls_asn2err(result);
- }
-
return 0;
cleanup:
@@ -751,7 +745,7 @@ ASN1_TYPE c2 = ASN1_TYPE_EMPTY;
}
/* DER Encodes the src ASN1_TYPE and stores it to
- * dest in dest_name. Usefull to encode something and store it
+ * dest in dest_name. Useful to encode something and store it
* as OCTET. If str is non null then the data are encoded as
* an OCTET STRING.
*/