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); }