crypto: add missing return value check#56615
Conversation
Add return value check for call to SSL_CTX_add_client_CA to be consistent with other places it is called Fixed unused warning in one of the static analysis tools we use at Red Hat even though it is not being reported by coverity in the configuration we run. Signed-off-by: Michael Dawson <midawson@redhat.com>
|
Review requested:
|
|
@khardix can you pass this on and ask your new team members to validate this resolves the problem they are seeing? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #56615 +/- ##
==========================================
- Coverage 89.20% 89.19% -0.01%
==========================================
Files 662 662
Lines 191819 191819
Branches 36927 36923 -4
==========================================
- Hits 171110 171100 -10
+ Misses 13565 13557 -8
- Partials 7144 7162 +18
|
|
This was mostly discovered by @jackorp, so CC'ing him. As for the fix, well, I do not think this addresses the main issue. Yes, our coverity run will now probably pass, but the The So the actual "main fix" we would like to see is either to remove the |
We can look into why that was added originally, but hopefully this PR will remove the immediate issue. |
|
Landed in 2e45656 |
Add return value check for call to SSL_CTX_add_client_CA to be consistent with other places it is called
Fixed unused warning in one of the static analysis tools we use at Red Hat even though it is not being reported by coverity in the configuration we run.