diff options
author | 2015-07-19 00:56:48 +0000 | |
---|---|---|
committer | 2015-07-19 00:56:48 +0000 | |
commit | 9a880583c54772e1d57fe1cd8074f8f5a5d140d5 (patch) | |
tree | e54bd2c9c737ef25edff42eb26e6031c99d8d429 /lib/libssl/src | |
parent | set usb vendor string to 'Octeon' instead of '' (diff) | |
download | wireguard-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.c | 7 |
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 |