summaryrefslogtreecommitdiff
path: root/security/putty/patches/patch-unix_uxnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/putty/patches/patch-unix_uxnet.c')
-rw-r--r--security/putty/patches/patch-unix_uxnet.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/security/putty/patches/patch-unix_uxnet.c b/security/putty/patches/patch-unix_uxnet.c
new file mode 100644
index 00000000000..7268e372779
--- /dev/null
+++ b/security/putty/patches/patch-unix_uxnet.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-unix_uxnet.c,v 1.1 2012/02/22 15:27:17 wiz Exp $
+
+--- unix/uxnet.c.orig 2009-08-06 22:55:15.000000000 +0000
++++ unix/uxnet.c
+@@ -526,10 +526,10 @@ static int try_connect(Actual_Socket soc
+ {
+ int s;
+ union sockaddr_union u;
+- const union sockaddr_union *sa;
++ const union sockaddr_union *sa = NULL;
+ int err = 0;
+ short localport;
+- int fl, salen, family;
++ int fl, salen = 0, family;
+
+ /*
+ * Remove the socket from the tree before we overwrite its