channels: Don't call ssh_channel_close() twice
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
родитель
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) {
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user