mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 12:03:03 -05:00
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:
parent
6db521f4b9
commit
08b127f95f
@ -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 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user