projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't write out a bad OID
[openssl.git]
/
crypto
/
asn1
/
tasn_enc.c
diff --git
a/crypto/asn1/tasn_enc.c
b/crypto/asn1/tasn_enc.c
index 081a9d534f8aa78a86a7c0a07cfa8d8a4073d868..1f534df065c3d3c48311f796d27a2a826b1127f1 100644
(file)
--- a/
crypto/asn1/tasn_enc.c
+++ b/
crypto/asn1/tasn_enc.c
@@
-588,6
+588,8
@@
int asn1_ex_i2c(ASN1_VALUE **pval, unsigned char *cout, int *putype,
otmp = (ASN1_OBJECT *)*pval;
cont = otmp->data;
len = otmp->length;
+ if (cont == NULL || len == 0)
+ return -1;
break;
case V_ASN1_NULL: