[openssl/openssl] 17dd9a: OSSL_STORE: Fix error flag clearing and setting (p...

Richard Levitte noreply at github.com
Fri Sep 8 06:34:43 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 17dd9a2c6262c00800301fddd9441a9c590a630e
      https://github.com/openssl/openssl/commit/17dd9a2c6262c00800301fddd9441a9c590a630e
  Author: Richard Levitte <levitte at openssl.org>
  Date:   2023-09-08 (Fri, 08 Sep 2023)

  Changed paths:
    M crypto/store/store_lib.c

  Log Message:
  -----------
  OSSL_STORE: Fix error flag clearing and setting (provider path only)

When the provider's load function returned with an error, the libcrypto
error flag was only set if EOF hadn't been reached.  This is troublesome,
as an error can very well occur during the last load before EOF is reached!

Also, the error flag was never reset, even though documentation specifies
that it should indicate an error in the last load (i.e. not the one before
that).

Fixes #21968

Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21976)




More information about the openssl-commits mailing list