Skip to content

Conversation

@x2018
Copy link
Contributor

@x2018 x2018 commented Nov 4, 2025

This PR adds a check for the return value of gnutls_pubkey_init().
According to the source code of gnutls_pubkey_init(), it returns a negative error value on error and key will be NULL.
However, according to the source of gnutls_pubkey_import_x509(), gnutls_pubkey_import_x509() would not check the validity of key.
Therefore, I believe that it is necessary to check the return value of gnutls_pubkey_init().

@github-actions github-actions bot added the TLS label Nov 4, 2025
@bagder bagder closed this in 8d45305 Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants