summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authorbcook <bcook@openbsd.org>2015-07-19 00:56:48 +0000
committerbcook <bcook@openbsd.org>2015-07-19 00:56:48 +0000
commit9a880583c54772e1d57fe1cd8074f8f5a5d140d5 (patch)
treee54bd2c9c737ef25edff42eb26e6031c99d8d429 /lib/libssl/src
parentset usb vendor string to 'Octeon' instead of '' (diff)
downloadwireguard-openbsd-9a880583c54772e1d57fe1cd8074f8f5a5d140d5.tar.xz
wireguard-openbsd-9a880583c54772e1d57fe1cd8074f8f5a5d140d5.zip
abort when ENGINE_remove fails, fix Coverity 21656
ok doug@, beck@
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/crypto/engine/eng_list.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libssl/src/crypto/engine/eng_list.c b/lib/libssl/src/crypto/engine/eng_list.c
index 30f09adc736..fc1d16b183e 100644
--- a/lib/libssl/src/crypto/engine/eng_list.c
+++ b/lib/libssl/src/crypto/engine/eng_list.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eng_list.c,v 1.20 2015/06/19 06:32:43 bcook Exp $ */
+/* $OpenBSD: eng_list.c,v 1.21 2015/07/19 00:56:48 bcook Exp $ */
/* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL
* project 2000.
*/
@@ -92,11 +92,8 @@ engine_list_cleanup(void)
{
ENGINE *iterator = engine_list_head;
- while (iterator != NULL) {
- ENGINE_remove(iterator);
+ while (iterator != NULL && ENGINE_remove(iterator))
iterator = engine_list_head;
- }
- return;
}
/* These static functions starting with a lower case "engine_" always