botan: Initialize p and q before calling calculate_pq()
authorTobias Brunner <tobias@strongswan.org>
Mon, 12 Nov 2018 15:55:52 +0000 (16:55 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 12 Nov 2018 16:36:22 +0000 (17:36 +0100)
src/libstrongswan/plugins/botan/botan_rsa_private_key.c

index 9379e2f..02820b2 100644 (file)
@@ -625,7 +625,7 @@ botan_rsa_private_key_t *botan_rsa_private_key_load(key_type_t type,
 
        if (n.ptr && e.ptr && d.ptr)
        {
-               botan_mp_t n_mp, e_mp, d_mp, p_mp, q_mp;
+               botan_mp_t n_mp, e_mp, d_mp, p_mp = NULL, q_mp = NULL;
 
                if (!chunk_to_botan_mp(n, &n_mp))
                {