channels1: Fix pty request state
Signed-off-by: Yanis Kurganov <YKurganov@ptsecurity.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
родитель
929868c691
Коммит
c6590bd189
@ -101,7 +101,8 @@ int channel_request_pty_size1(ssh_channel channel, const char *terminal, int col
|
||||
}
|
||||
session = channel->session;
|
||||
|
||||
if(channel->request_state != SSH_CHANNEL_REQ_STATE_NONE){
|
||||
if(channel->request_state != SSH_CHANNEL_REQ_STATE_NONE &&
|
||||
channel->request_state != SSH_CHANNEL_REQ_STATE_ACCEPTED){
|
||||
ssh_set_error(session,SSH_REQUEST_DENIED,"Wrong request state");
|
||||
return SSH_ERROR;
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user