summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regress/lib/libcrypto/objects/objectstest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/objects/objectstest.c b/src/regress/lib/libcrypto/objects/objectstest.c
index 1a9674cb48..c1890d8a96 100644
--- a/src/regress/lib/libcrypto/objects/objectstest.c
+++ b/src/regress/lib/libcrypto/objects/objectstest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: objectstest.c,v 1.1 2022/02/11 16:34:23 jsing Exp $ */ 1/* $OpenBSD: objectstest.c,v 1.2 2022/02/11 16:39:50 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2017, 2022 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017, 2022 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -211,7 +211,7 @@ obj_nid_test(struct obj_test *ot)
211 int nid; 211 int nid;
212 int failed = 1; 212 int failed = 1;
213 213
214 if (ot->nid == NID_undef) 214 if (ot->nid == NID_undef && ot->oid != NULL)
215 return 0; 215 return 0;
216 216
217 if ((obj = OBJ_nid2obj(ot->nid)) == NULL) { 217 if ((obj = OBJ_nid2obj(ot->nid)) == NULL) {