From: Richard Levitte Date: Tue, 7 Nov 2000 13:21:09 +0000 (+0000) Subject: When ENGINE_by_id() couldn't find the given engine id, it generates an X-Git-Tag: rsaref~3 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=74489a366836aa10a4241a3634f536a7e5798735 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. --- 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; }