Skip to content

Commit f92174d

Browse files
committed
botan: Initialize p and q before calling calculate_pq()
1 parent de80946 commit f92174d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstrongswan/plugins/botan/botan_rsa_private_key.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ botan_rsa_private_key_t *botan_rsa_private_key_load(key_type_t type,
625625

626626
if (n.ptr && e.ptr && d.ptr)
627627
{
628-
botan_mp_t n_mp, e_mp, d_mp, p_mp, q_mp;
628+
botan_mp_t n_mp, e_mp, d_mp, p_mp = NULL, q_mp = NULL;
629629

630630
if (!chunk_to_botan_mp(n, &n_mp))
631631
{

0 commit comments

Comments
 (0)