channels: Reformat ssh_channel_free()

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 1d5b222cc4)
This commit is contained in:
Andreas Schneider
2018-12-10 14:06:55 +01:00
parent bcdbc11732
commit 917ba07478

View File

@@ -999,7 +999,8 @@ error:
* *
* @warning Any data unread on this channel will be lost. * @warning Any data unread on this channel will be lost.
*/ */
void ssh_channel_free(ssh_channel channel) { void ssh_channel_free(ssh_channel channel)
{
ssh_session session; ssh_session session;
if (channel == NULL) { if (channel == NULL) {
@@ -1017,8 +1018,8 @@ void ssh_channel_free(ssh_channel channel) {
* We definitively close the channel when we receive a close message *and* * We definitively close the channel when we receive a close message *and*
* the user closed it. * the user closed it.
*/ */
if((channel->flags & SSH_CHANNEL_FLAG_CLOSED_REMOTE) if ((channel->flags & SSH_CHANNEL_FLAG_CLOSED_REMOTE) ||
|| (channel->flags & SSH_CHANNEL_FLAG_NOT_BOUND)){ (channel->flags & SSH_CHANNEL_FLAG_NOT_BOUND)) {
ssh_channel_do_free(channel); ssh_channel_do_free(channel);
} }
} }