Skip to content

Conversation

@ndossche
Copy link
Member

@ndossche ndossche commented Mar 3, 2023

This function returns 0 on error and 1 on success. The error case was not checked and the function therefore would've returned true. The only other caller of i2d_PKCS12_bio() in the file has a correct error check.

Found using an experimental static analyser I'm developing.

This function returns 0 on error and 1 on success. The error case was
not checked and the function therefore would've returned true.
The only other caller of i2d_PKCS12_bio() in the file has
a correct error check.
Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Looks good to me, but I'd like Jakub to confirm. 🙂

@ndossche ndossche self-assigned this Mar 5, 2023
@ndossche ndossche closed this in d2ef156 Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants