]> granicus.if.org Git - openssl/commit
Prevent an infinite recursion when the query cache is flushed.
authorPauli <paul.dale@oracle.com>
Wed, 31 Jul 2019 09:31:45 +0000 (19:31 +1000)
committerPauli <paul.dale@oracle.com>
Thu, 1 Aug 2019 05:41:30 +0000 (15:41 +1000)
commite2e5abe47af60260e9a4247597e64a4e9d266a7a
tree5f8c07b4118f48fcd7d7674228cbdb129f80f419
parentf06cf3c4149c271d498764c2a071cb68b3d9a431
Prevent an infinite recursion when the query cache is flushed.

The problem being that the "requires flush" flag was being cleared after the
the flush.  The fix is to clear it before.  This is a problem because the
cache flushing called RAND_bytes and if the DRBG hadn't been created yet, it
would be queried and added to the cache causing the flush code to repeat.

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/9477)
crypto/property/property.c