messages: Utilize the message queue for SSH_REQUEST_GLOBAL.
Signed-off-by: Max Bachmann <mabahltm@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
родитель
462c7726c3
Коммит
3ec8babfaf
@ -1406,7 +1406,8 @@ SSH_PACKET_CALLBACK(ssh_packet_global_request){
|
|||||||
msg->global_request.bind_port);
|
msg->global_request.bind_port);
|
||||||
session->common.callbacks->global_request_function(session, msg, session->common.callbacks->userdata);
|
session->common.callbacks->global_request_function(session, msg, session->common.callbacks->userdata);
|
||||||
} else {
|
} else {
|
||||||
ssh_message_reply_default(msg);
|
ssh_message_queue(session, msg);
|
||||||
|
return rc;
|
||||||
}
|
}
|
||||||
} else if (strcmp(request, "cancel-tcpip-forward") == 0) {
|
} else if (strcmp(request, "cancel-tcpip-forward") == 0) {
|
||||||
r = ssh_buffer_unpack(packet, "sd",
|
r = ssh_buffer_unpack(packet, "sd",
|
||||||
@ -1425,7 +1426,8 @@ SSH_PACKET_CALLBACK(ssh_packet_global_request){
|
|||||||
if(ssh_callbacks_exists(session->common.callbacks, global_request_function)) {
|
if(ssh_callbacks_exists(session->common.callbacks, global_request_function)) {
|
||||||
session->common.callbacks->global_request_function(session, msg, session->common.callbacks->userdata);
|
session->common.callbacks->global_request_function(session, msg, session->common.callbacks->userdata);
|
||||||
} else {
|
} else {
|
||||||
ssh_message_reply_default(msg);
|
ssh_message_queue(session, msg);
|
||||||
|
return rc;
|
||||||
}
|
}
|
||||||
} else if(strcmp(request, "keepalive@openssh.com") == 0) {
|
} else if(strcmp(request, "keepalive@openssh.com") == 0) {
|
||||||
msg->global_request.type = SSH_GLOBAL_REQUEST_KEEPALIVE;
|
msg->global_request.type = SSH_GLOBAL_REQUEST_KEEPALIVE;
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user