зеркало из https://github.com/github/putty.git
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:
Родитель
6db521f4b9
Коммит
08b127f95f
|
@ -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 */
|
||||
|
|
Загрузка…
Ссылка в новой задаче