mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00: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);
|
||||
if (s->prompts)
|
||||
free_prompts(s->prompts);
|
||||
smemclr(s, sizeof(s));
|
||||
smemclr(s, sizeof(*s));
|
||||
sfree(s);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user