]> git.ipfire.org Git - thirdparty/openssl.git/commit
Change condition to avoid spurious compiler complaints.
authorPauli <pauli@openssl.org>
Wed, 9 Feb 2022 00:17:57 +0000 (11:17 +1100)
committerPauli <pauli@openssl.org>
Fri, 11 Feb 2022 02:44:08 +0000 (13:44 +1100)
commitb84c6e86dd8ca88444207080808d1d598856041f
tree18e42627fc53264c999200fecaa4550ea89d343f
parent378c50f63dceb3a85bb4937a3499283b10d295b6
Change condition to avoid spurious compiler complaints.

X509_TRUST_get0() is checking < 0, the code here was checking == -1.  Both are
equivalent in this situation but gcc-12 has conniptions about a subsequent
possible NULL dereference (which isn't possible).

Fixes #17665

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17668)
crypto/x509/x509_trust.c