summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/objects/obj_dat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/objects/obj_dat.c b/src/lib/libcrypto/objects/obj_dat.c
index 481d86b6bf..1e7258f748 100644
--- a/src/lib/libcrypto/objects/obj_dat.c
+++ b/src/lib/libcrypto/objects/obj_dat.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: obj_dat.c,v 1.55 2023/08/17 09:18:21 tb Exp $ */ 1/* $OpenBSD: obj_dat.c,v 1.56 2023/08/17 09:22:56 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -179,11 +179,11 @@ static int
179added_obj_cmp(const ADDED_OBJ *ca, const ADDED_OBJ *cb) 179added_obj_cmp(const ADDED_OBJ *ca, const ADDED_OBJ *cb)
180{ 180{
181 ASN1_OBJECT *a, *b; 181 ASN1_OBJECT *a, *b;
182 int i; 182 int cmp;
183
184 if ((cmp = ca->type - cb->type) != 0)
185 return cmp;
183 186
184 i = ca->type - cb->type;
185 if (i)
186 return (i);
187 a = ca->obj; 187 a = ca->obj;
188 b = cb->obj; 188 b = cb->obj;
189 switch (ca->type) { 189 switch (ca->type) {