mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
portfwdmgr_config: null out pointers we're destroying.
In particular, a report today pointed out that the call to pfl_terminate(pfr->local) directly from portfwdmgr_config() was then repeated from inside pfr_free(pfr) which we called four lines later, leading to a double-free crash. Now we null out pfr->local the first time, so the call in pfr_free is skipped. While I'm at it, I've nulled out pfr->remote similarly; that doesn't cause any crash that I can see, but it's a good habit to get into for futureproofing.
This commit is contained in:
parent
8c710dddc5
commit
fe408562fa
Loading…
Reference in New Issue
Block a user