From 7fee3c43151a42ba42270c426c0bf5a9ff72628e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 19 Oct 2008 03:25:45 +0000 Subject: [PATCH] fix sort order git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23942 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/test_name.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/hx509/test_name.c b/lib/hx509/test_name.c index 856254e06..da83e5278 100644 --- a/lib/hx509/test_name.c +++ b/lib/hx509/test_name.c @@ -338,10 +338,10 @@ test_compare(hx509_context context) ret = compare_subject(c2, c3, &l3); if (ret) return 1; - if (l0 != l0) return 1; - if (l1 < l2) return 1; - if (l2 < l3) return 1; - if (l1 < l3) return 1; + if (l0 != 0) return 1; + if (l2 < l1) return 1; + if (l3 < l2) return 1; + if (l3 < l1) return 1; hx509_cert_free(c1); hx509_cert_free(c2);