Remove fd from the list when the engine clears the wait context before pause
authorAndrea Grandi <andrea.grandi@intel.com>
Fri, 3 Feb 2017 05:46:17 +0000 (05:46 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 13 Feb 2017 15:29:43 +0000 (15:29 +0000)
commitf89dd6738a0ec2b6cfb05a3cc5fa38843dc27d2f
tree2c384b786b18925e62be3369518c4028fe77de49
parentf44e63644d29e5908be52b7896d5031a5cf460eb
Remove fd from the list when the engine clears the wait context before pause

This fixes the num of fds added/removed returned by ASYNC_WAIT_CTX_get_changed_fds

Previously, the numbers were not consistent with the fds actually written in
the buffers since the fds that have been both added and removed are explicitly
ignored in the loop.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2581)
crypto/async/async_wait.c