[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ssh_free ( session ) segfaults when there's active channels
[Thread Prev] | [Thread Next]
- Subject: ssh_free ( session ) segfaults when there's active channels
- From: Gearoid Murphy <gearoid.murphy@xxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 12 Jan 2012 14:42:02 +0000
- To: libssh@xxxxxxxxxx
I've been seeing segmentation faults when calling ssh_free(session) when there's still active channels in the channel list.
The segmentation fault occurs because the 'session->out_buffer' is freed before the channels are freed. This buffer is used during 'ssh_channel_do_free' to send the EOF packet (I think). Moving the channel delete loop to a point before the line where 'session->out_buffer' is freed fixed the issue.
Should this be logged as a bug?
Archive administrator: postmaster@lists.cynapses.org