mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -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:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user