From 2f39b500630e9ff9fe9153ab0b45d2c560a4a9b8 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Sat, 3 May 2014 16:46:56 -0700 Subject: [PATCH] fixed DateLessThan() It was returning true on less-than or equal-to. --- ctaocrypt/src/asn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctaocrypt/src/asn.c b/ctaocrypt/src/asn.c index 57650bd1e..de4328df3 100644 --- a/ctaocrypt/src/asn.c +++ b/ctaocrypt/src/asn.c @@ -2116,7 +2116,7 @@ static int DateGreaterThan(const struct tm* a, const struct tm* b) static INLINE int DateLessThan(const struct tm* a, const struct tm* b) { - return !DateGreaterThan(a,b); + return DateGreaterThan(b,a); }