summaryrefslogtreecommitdiff
path: root/security/putty/patches/patch-ak
diff options
context:
space:
mode:
Diffstat (limited to 'security/putty/patches/patch-ak')
-rw-r--r--security/putty/patches/patch-ak25
1 files changed, 25 insertions, 0 deletions
diff --git a/security/putty/patches/patch-ak b/security/putty/patches/patch-ak
new file mode 100644
index 00000000000..043f2b37f1c
--- /dev/null
+++ b/security/putty/patches/patch-ak
@@ -0,0 +1,25 @@
+$NetBSD: patch-ak,v 1.1 2005/04/06 21:51:13 xtraeme Exp $
+
+--- ../import.c.orig 2005-04-05 21:37:51.000000000 +0200
++++ ../import.c 2005-04-06 23:39:12.000000000 +0200
+@@ -681,7 +681,10 @@
+ int outlen;
+ struct mpint_pos numbers[9];
+ int nnumbers, pos, len, seqlen, i;
++ nnumbers = pos = len = seqlen = i = 0;
+ char *header, *footer;
++ footer = header = NULL;
++
+ char zero[1];
+ unsigned char iv[8];
+ int ret = 0;
+@@ -1442,7 +1445,8 @@
+ int outlen;
+ struct mpint_pos numbers[6];
+ int nnumbers, initial_zero, pos, lenpos, i;
+- char *type;
++ nnumbers = initial_zero = pos = lenpos = i = 0;
++ char *type = NULL;
+ char *ciphertext;
+ int cipherlen;
+ int ret = 0;