]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
af-alg: Fix compiler warning
authorTobias Brunner <tobias@strongswan.org>
Thu, 1 Dec 2022 08:27:44 +0000 (09:27 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 2 Dec 2022 13:56:38 +0000 (14:56 +0100)
src/libstrongswan/plugins/af_alg/af_alg_signer.c

index 4e23af4394e8e37e009868d0cfafd65480f87ff0..d24cc48593a583de5f0ba922d949764fe603471f 100644 (file)
@@ -174,7 +174,7 @@ METHOD(signer_t, destroy, void,
 af_alg_signer_t *af_alg_signer_create(integrity_algorithm_t algo)
 {
        private_af_alg_signer_t *this;
-       size_t block_size, key_size;
+       size_t block_size, key_size = 0;
        char *name;
 
        block_size = lookup_alg(algo, &name, &key_size);