Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 8f20ece

Browse files
committed
pki_container_openssh: Initialize pointers to NULL
Fixes T190 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com> (cherry picked from commit e065d2b)
1 parent d15fa16 commit 8f20ece

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pki_container_openssh.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ static int pki_private_key_decrypt(ssh_string blob,
111111
uint8_t key_material[128] = {0};
112112
char passphrase_buffer[128] = {0};
113113
size_t key_material_len;
114-
ssh_buffer buffer;
115-
ssh_string salt;
114+
ssh_buffer buffer = NULL;
115+
ssh_string salt = NULL;
116116
uint32_t rounds;
117117
int cmp;
118118
int rc;

0 commit comments

Comments
 (0)