mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 09:12:24 +00:00
Argh. Failure to make a variable static to get round coroutine
mechanics means that each SSH-2 remote tunnel will sfree() something
random and thus have a chance of crashing or doing something else
bad, although it won't otherwise affect execution. Introduced in
1.319 [r4529] (some of my improved diagnostics). One day I'll make a
checkin to ssh.c without forgetting about the coroutines...
[originally from svn r4725]
[r4529 == 27193c4bf0
]
This commit is contained in:
parent
2e90539429
commit
86ba7399bb
2
ssh.c
2
ssh.c
@ -5770,7 +5770,7 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen, int ispkt)
|
|||||||
}
|
}
|
||||||
if (sport && dport) {
|
if (sport && dport) {
|
||||||
/* Set up a description of the source port. */
|
/* Set up a description of the source port. */
|
||||||
char *sportdesc = dupprintf("%.*s%.*s%.*s%.*s%d%.*s",
|
static char *sportdesc = dupprintf("%.*s%.*s%.*s%.*s%d%.*s",
|
||||||
(int)(*saddr?strlen(saddr):0), *saddr?saddr:NULL,
|
(int)(*saddr?strlen(saddr):0), *saddr?saddr:NULL,
|
||||||
(int)(*saddr?1:0), ":",
|
(int)(*saddr?1:0), ":",
|
||||||
(int)(sserv ? strlen(sports) : 0), sports,
|
(int)(sserv ? strlen(sports) : 0), sports,
|
||||||
|
Loading…
Reference in New Issue
Block a user