diff options
Diffstat (limited to 'security/putty/patches/patch-import.c')
-rw-r--r-- | security/putty/patches/patch-import.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/security/putty/patches/patch-import.c b/security/putty/patches/patch-import.c new file mode 100644 index 00000000000..aa74a4e69ff --- /dev/null +++ b/security/putty/patches/patch-import.c @@ -0,0 +1,26 @@ +$NetBSD: patch-import.c,v 1.1 2012/02/22 15:27:16 wiz Exp $ + +--- import.c.orig 2010-04-12 11:02:06.000000000 +0000 ++++ import.c +@@ -717,8 +717,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; +@@ -1513,8 +1513,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; |