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 caa48696da4ecf5e1f9ee6e1112ab56759d4056e..8b562ba1f47947e172461cdd6207d4fd2abcf424 100644
(file)
--- a/
crypto/asn1/tasn_enc.c
+++ b/
crypto/asn1/tasn_enc.c
@@
-528,6
+528,8
@@
static 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: