help-libtasn1
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/3] Make asn1_ordering_set_of() return error if it can't find da


From: Kurt Roeckx
Subject: [PATCH 2/3] Make asn1_ordering_set_of() return error if it can't find data for one of the entries.
Date: Sat, 26 Apr 2014 18:10:31 +0200

---
 lib/coding.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/coding.c b/lib/coding.c
index 6cf3b31..7f9173c 100644
--- a/lib/coding.c
+++ b/lib/coding.c
@@ -906,6 +906,11 @@ _asn1_ordering_set_of (unsigned char *der, int der_len, 
asn1_node node)
            }
          counter += len + len2;
        }
+      else
+       {
+         err = ASN1_DER_ERROR;
+         goto error;
+       }
 
       p_vet->end = counter;
       p = p->right;
-- 
1.9.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]