]> git.ipfire.org Git - thirdparty/gnutls.git/commit
tests/psk-importer.c: Add check for gnutls_malloc to avoid potential NULL pointer...
authorJiasheng Jiang <jiashengjiangcool@gmail.com>
Sat, 2 Aug 2025 23:10:32 +0000 (23:10 +0000)
committerDaiki Ueno <ueno@gnu.org>
Mon, 4 Aug 2025 05:10:26 +0000 (14:10 +0900)
commitd6e45b175c49fc608f64b9beea792f2f64b97bb4
treee32cc2ef5c64a249232825399fc22977567b5ba8
parentd424e3992ad1e1fd1ad0bf24309ada6494565f39
tests/psk-importer.c: Add check for gnutls_malloc to avoid potential NULL pointer dereference

Add check for the return value of gnutls_malloc() to avoid potential NULL pointer dereference.

Fixes: 4fe788cc1 ("psk: Add basic support for RFC 9258 external PSK importer interface")
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
tests/psk-importer.c