projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Check for overlows and error return from ASN1_object_size()
[openssl.git]
/
crypto
/
asn1
/
tasn_fre.c
diff --git
a/crypto/asn1/tasn_fre.c
b/crypto/asn1/tasn_fre.c
index 9b623d907c4a5387c93bba7f364dc42f608a75ef..d467b89c80881926be65b59955e9500d64794b34 100644
(file)
--- a/
crypto/asn1/tasn_fre.c
+++ b/
crypto/asn1/tasn_fre.c
@@
-89,7
+89,7
@@
static void asn1_item_embed_free(ASN1_VALUE **pval, const ASN1_ITEM *it,
case ASN1_ITYPE_NDEF_SEQUENCE:
case ASN1_ITYPE_SEQUENCE:
- if (asn1_do_lock(pval, -1, it)
> 0)
+ if (asn1_do_lock(pval, -1, it)
!= 0) /* if error or ref-counter > 0 */
return;
if (asn1_cb) {
i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL);