Skip to content

Commit

Permalink
Merge pull request #158 from redpanda-data/mboquard/core-8474
Browse files Browse the repository at this point in the history
tls: Do not place functional code in assert
  • Loading branch information
michael-redpanda authored Dec 6, 2024
2 parents 6a73b6f + 3652787 commit f194d34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/net/ossl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@ class tls::certificate_credentials::impl {
}()) {
// The static verify_callback above will use the stored pointer to 'this' to store the last
// observed x509 certificate
assert(X509_STORE_set_ex_data(_creds.get(), credential_store_idx, this) == 1);
[[maybe_unused]] auto res =
X509_STORE_set_ex_data(_creds.get(), credential_store_idx, this);
assert(res == 1);
}


Expand Down

0 comments on commit f194d34

Please sign in to comment.