summaryrefslogtreecommitdiff
path: root/security/putty/patches/patch-ak
blob: 13c7b5049b35744aadb20a33f9059c482ba8ed6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-ak,v 1.2 2005/04/13 16:45:46 rillig Exp $

--- import.c.orig	Tue Apr  5 21:37:51 2005
+++ import.c	Tue Apr 12 10:27:13 2005
@@ -680,8 +680,8 @@ int openssh_write(const Filename *filena
     unsigned char *outblob;
     int outlen;
     struct mpint_pos numbers[9];
-    int nnumbers, pos, len, seqlen, i;
-    char *header, *footer;
+    int nnumbers = 0, pos = 0, len = 0, seqlen = 0, i = 0;
+    char *header = NULL, *footer = NULL;
     char zero[1];
     unsigned char iv[8];
     int ret = 0;
@@ -1441,8 +1441,8 @@ int sshcom_write(const Filename *filenam
     unsigned char *outblob;
     int outlen;
     struct mpint_pos numbers[6];
-    int nnumbers, initial_zero, pos, lenpos, i;
-    char *type;
+    int nnumbers = 0, initial_zero = 0, pos = 0, lenpos = 0, i = 0;
+    char *type = NULL;
     char *ciphertext;
     int cipherlen;
     int ret = 0;