Displaying 1 result from an estimated 1 matches for "c_ssh".
Did you mean:
_ssh
2017 Jun 29
5
[Bug 2734] New: close() is called twice in confree()
...igned-bugs at mindrot.org
Reporter: bagajjal at microsoft.com
close() is called twice in confree()
Current code -
ssh_packet_close() internally calls the close() again.
confree(int s)
{
......
......
close(s);
......
......
if (fdcon[s].c_ssh) {
ssh_packet_close(fdcon[s].c_ssh);
......
......
}
Fix -
confree(int s)
{
......
......
if (fdcon[s].c_ssh) {
ssh_packet_close(fdcon[s].c_ssh);
free(fdcon[s].c_ssh);
fdcon[s].c_ssh = NULL;...