]> git.ipfire.org Git - thirdparty/gnutls.git/commit
lib/anon_cred.c: Add check for gnutls_calloc
authorJiasheng Jiang <jiashengjiangcool@gmail.com>
Sat, 2 Aug 2025 15:38:40 +0000 (15:38 +0000)
committerDaiki Ueno <ueno@gnu.org>
Mon, 4 Aug 2025 05:10:25 +0000 (14:10 +0900)
commit3145b5dd4ecc3e2a0e2e9029a70fb07942b2caf5
tree7dbc925e91537fdad46d135e6cce5e9c1dc5f0cc
parenta40e2f159a630c2feeeb60df194ad669423d66e3
lib/anon_cred.c: Add check for gnutls_calloc

According to the comment above, add check for the return value of gnutls_calloc() and return an error code if it fails.

Fixes: 23efd9990 ("The Diffie Hellman parameters are now stored in the credentials structures. This will allow precomputation of signatures (for DHE cipher suites).")
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
lib/anon_cred.c