1
0
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:
Simon Tatham 2022-01-29 18:00:13 +00:00
parent 1f6fa876e3
commit 7582ce3cd6

View File

@ -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);
}