mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 06:38:37 -05:00
proxy_socks5_free: fix inadequate smemclr.
Thanks to Coverity for pointing out that I'd only cleared sizeof(pointer) amount of the struct, not sizeof(the whole thing).
This commit is contained in:
parent
1f6fa876e3
commit
7582ce3cd6
@ -70,7 +70,7 @@ static void proxy_socks5_free(ProxyNegotiator *pn)
|
|||||||
strbuf_free(s->password);
|
strbuf_free(s->password);
|
||||||
if (s->prompts)
|
if (s->prompts)
|
||||||
free_prompts(s->prompts);
|
free_prompts(s->prompts);
|
||||||
smemclr(s, sizeof(s));
|
smemclr(s, sizeof(*s));
|
||||||
sfree(s);
|
sfree(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user