summaryrefslogtreecommitdiffstats
path: root/crypto/objects/obj_xref.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-07-12 16:30:40 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-07-12 16:30:40 +0000
commit31780d0e2603f4c73bb69f921230db567acdc1f5 (patch)
tree15d9d30e390d2f1042d825a9e4ac4bcd08cd60f8 /crypto/objects/obj_xref.c
parentf489ab31471140799f4fee5c5d585da789503b2c (diff)
Bugfix: don't look in internal table for signature if found in application
supplied list.
Diffstat (limited to 'crypto/objects/obj_xref.c')
-rw-r--r--crypto/objects/obj_xref.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/objects/obj_xref.c b/crypto/objects/obj_xref.c
index f74533c3ec..963177ca59 100644
--- a/crypto/objects/obj_xref.c
+++ b/crypto/objects/obj_xref.c
@@ -127,11 +127,14 @@ int OBJ_find_sigid_by_algs(int *psignid, int dig_nid, int pkey_nid)
}
#ifndef OBJ_XREF_TEST2
- rv = (nid_triple **)OBJ_bsearch((char *)&t,
+ if (rv == NULL)
+ {
+ rv = (nid_triple **)OBJ_bsearch((char *)&t,
(char *)sigoid_srt_xref,
sizeof(sigoid_srt_xref) / sizeof(nid_triple *),
sizeof(nid_triple *),
(int (*)(const void *, const void *))cmp_sigx);
+ }
#endif
if (rv == NULL)
return 0;