diff --git a/src/libstrongswan/plugins/wolfssl/wolfssl_xof.c b/src/libstrongswan/plugins/wolfssl/wolfssl_xof.c index f25c524dc..1e5ae6838 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;