help-libtasn1
[Top][All Lists]
Advanced

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

[PATCH] Use the smallest of the 2 lengths for the comparison


From: Kurt Roeckx
Subject: [PATCH] Use the smallest of the 2 lengths for the comparison
Date: Sun, 27 Apr 2014 23:17:05 +0200

---
 lib/coding.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/coding.c b/lib/coding.c
index 15c87d3..34a204b 100644
--- a/lib/coding.c
+++ b/lib/coding.c
@@ -925,7 +925,7 @@ _asn1_ordering_set_of (unsigned char *der, int der_len, 
asn1_node node)
       counter = 0;
       while (p2_vet)
        {
-         if ((p_vet->end - counter) > (p2_vet->end - p_vet->end))
+         if ((p_vet->end - counter) < (p2_vet->end - p_vet->end))
            max = p_vet->end - counter;
          else
            max = p2_vet->end - p_vet->end;
-- 
1.9.2




reply via email to

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