Don't use an uninitialised value when we get an unsupported ATYP in a

SOCKS5 request.  Spotted by GCC.

[originally from svn r3113]
This commit is contained in:
Ben Harris 2003-04-12 21:15:43 +00:00
Родитель 6db521f4b9
Коммит 08b127f95f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -220,7 +220,7 @@ static int pfd_receive(Plug plug, int urgent, char *data, int len)
} }
if (pr->dynamic == 0x5001) { if (pr->dynamic == 0x5001) {
int atype, alen; int atype, alen = 0;
if (pr->port < 6) continue; if (pr->port < 6) continue;
atype = (unsigned char)pr->hostname[3]; atype = (unsigned char)pr->hostname[3];
if (atype == 1) /* IPv4 address */ if (atype == 1) /* IPv4 address */