]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Don't use an uninitialised value when we get an unsupported ATYP in a
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 12 Apr 2003 21:15:43 +0000 (21:15 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Sat, 12 Apr 2003 21:15:43 +0000 (21:15 +0000)
SOCKS5 request.  Spotted by GCC.

[originally from svn r3113]

portfwd.c

index 825ee8fb96c93713fafe84fd5e648cf14776a8db..e21ed3a24de9669a9aba4df8c1b1943098dfcd84 100644 (file)
--- a/portfwd.c
+++ b/portfwd.c
@@ -220,7 +220,7 @@ static int pfd_receive(Plug plug, int urgent, char *data, int len)
                }
 
                if (pr->dynamic == 0x5001) {
-                   int atype, alen;
+                   int atype, alen = 0;
                    if (pr->port < 6) continue;
                    atype = (unsigned char)pr->hostname[3];
                    if (atype == 1)    /* IPv4 address */