]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
wolfssl: Properly handle failure to initialize SHAKE_256
authorTobias Brunner <tobias@strongswan.org>
Thu, 6 May 2021 09:03:19 +0000 (11:03 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 6 May 2021 09:47:38 +0000 (11:47 +0200)
src/libstrongswan/plugins/wolfssl/wolfssl_xof.c

index f25c524dc6995e69821b451085cca086593766be..1e5ae6838fb928c5a72afa9d71751018bef96231 100644 (file)
@@ -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;