summaryrefslogtreecommitdiff
path: root/source4/heimdal/lib/asn1/der_cmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/heimdal/lib/asn1/der_cmp.c')
-rwxr-xr-xsource4/heimdal/lib/asn1/der_cmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/heimdal/lib/asn1/der_cmp.c b/source4/heimdal/lib/asn1/der_cmp.c
index 306fcbdf57..2471312ba8 100755
--- a/source4/heimdal/lib/asn1/der_cmp.c
+++ b/source4/heimdal/lib/asn1/der_cmp.c
@@ -74,10 +74,10 @@ heim_bit_string_cmp(const heim_bit_string *p, const heim_bit_string *q)
int
heim_integer_cmp(const heim_integer *p, const heim_integer *q)
{
+ if (p->negative != q->negative)
+ return q->negative - p->negative;
if (p->length != q->length)
return p->length - q->length;
- if (p->negative != q->negative)
- return p->negative - q->negative;
return memcmp(p->data, q->data, p->length);
}