From: Tobias Brunner Date: Thu, 6 May 2021 09:03:19 +0000 (+0200) Subject: wolfssl: Properly handle failure to initialize SHAKE_256 X-Git-Tag: 5.9.3dr2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9535c3f778f521b552cefe74f4a40fbae65ac224;p=thirdparty%2Fstrongswan.git wolfssl: Properly handle failure to initialize SHAKE_256 --- diff --git a/src/libstrongswan/plugins/wolfssl/wolfssl_xof.c b/src/libstrongswan/plugins/wolfssl/wolfssl_xof.c index f25c524dc6..1e5ae6838f 100644 --- a/src/libstrongswan/plugins/wolfssl/wolfssl_xof.c +++ b/src/libstrongswan/plugins/wolfssl/wolfssl_xof.c @@ -143,6 +143,7 @@ xof_t *wolfssl_xof_create(ext_out_function_t algorithm) if (wc_InitShake256(&this->shake, NULL, 0) != 0) { free(this); + return NULL; } return &this->public;