1
1

channels: Don't call ssh_channel_close() twice

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
Andreas Schneider 2018-12-12 18:30:26 +01:00
родитель 0bd404bcbd
Коммит 6cd8d4a24a

Просмотреть файл

@ -1168,6 +1168,11 @@ int ssh_channel_close(ssh_channel channel)
return SSH_ERROR;
}
/* If the channel close has already been sent we're done here. */
if (channel->flags & SSH_CHANNEL_FLAG_CLOSED_LOCAL) {
return SSH_OK;
}
session = channel->session;
if (channel->local_eof == 0) {