From 08b127f95f238802ac193a24b9815555e72e7358 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 12 Apr 2003 21:15:43 +0000 Subject: [PATCH] Don't use an uninitialised value when we get an unsupported ATYP in a SOCKS5 request. Spotted by GCC. [originally from svn r3113] --- portfwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portfwd.c b/portfwd.c index 825ee8fb..e21ed3a2 100644 --- 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 */