summaryrefslogtreecommitdiffstats
path: root/crypto/engine
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-11-07 13:21:09 +0000
committerRichard Levitte <levitte@openssl.org>2000-11-07 13:21:09 +0000
commit74489a366836aa10a4241a3634f536a7e5798735 (patch)
tree0a97cfa15001f617f2934b9b91cb5b20a7016c04 /crypto/engine
parente06433d9baeec055d6d3e504bcbbfce680995581 (diff)
When ENGINE_by_id() couldn't find the given engine id, it generates an
error. When checking like engine_add() is, those errors are actually good, so remove them.
Diffstat (limited to 'crypto/engine')
-rw-r--r--crypto/engine/engine_all.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/engine/engine_all.c b/crypto/engine/engine_all.c
index 28da0c6d1b..1d2c715950 100644
--- a/crypto/engine/engine_all.c
+++ b/crypto/engine/engine_all.c
@@ -61,7 +61,10 @@
static int engine_add(ENGINE *e)
{
if (!ENGINE_by_id(ENGINE_get_id(e)))
+ {
+ (void)ERR_get_error();
return ENGINE_add(e);
+ }
return 1;
}