From: Tobias Brunner Date: Mon, 12 Nov 2018 15:55:52 +0000 (+0100) Subject: botan: Initialize p and q before calling calculate_pq() X-Git-Tag: 5.7.2dr4~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f92174dcd1018e96b5b56051b0be807168904c58;p=thirdparty%2Fstrongswan.git botan: Initialize p and q before calling calculate_pq() --- diff --git a/src/libstrongswan/plugins/botan/botan_rsa_private_key.c b/src/libstrongswan/plugins/botan/botan_rsa_private_key.c index 9379e2fac7..02820b297f 100644 --- a/src/libstrongswan/plugins/botan/botan_rsa_private_key.c +++ b/src/libstrongswan/plugins/botan/botan_rsa_private_key.c @@ -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)) {