mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-27 13:21:11 +03:00
Fix build errors in new messages functions.
Signed-off-by: Andreas Schneider <mail@cynapses.org>
This commit is contained in:
@@ -425,7 +425,7 @@ int ssh_message_auth_reply_pk_ok(SSH_MESSAGE *msg, ssh_string algo, ssh_string p
|
|||||||
|
|
||||||
static SSH_MESSAGE *handle_channel_request_open(SSH_SESSION *session) {
|
static SSH_MESSAGE *handle_channel_request_open(SSH_SESSION *session) {
|
||||||
SSH_MESSAGE *msg = NULL;
|
SSH_MESSAGE *msg = NULL;
|
||||||
ssh_string type = NULL, *originator = NULL, *destination = NULL;
|
ssh_string type = NULL, originator = NULL, destination = NULL;
|
||||||
char *type_c = NULL;
|
char *type_c = NULL;
|
||||||
uint32_t sender, window, packet, originator_port, destination_port;
|
uint32_t sender, window, packet, originator_port, destination_port;
|
||||||
|
|
||||||
@@ -734,7 +734,6 @@ static SSH_MESSAGE *handle_channel_request(SSH_SESSION *session) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(type_c, "window-change") == 0) {
|
if (strcmp(type_c, "window-change") == 0) {
|
||||||
STRING *term = NULL;
|
|
||||||
SAFE_FREE(type_c);
|
SAFE_FREE(type_c);
|
||||||
|
|
||||||
msg->channel_request.type = SSH_CHANNEL_REQUEST_WINDOW_CHANGE;
|
msg->channel_request.type = SSH_CHANNEL_REQUEST_WINDOW_CHANGE;
|
||||||
@@ -808,8 +807,8 @@ static SSH_MESSAGE *handle_channel_request(SSH_SESSION *session) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(type_c, "env") == 0) {
|
if (strcmp(type_c, "env") == 0) {
|
||||||
STRING *name = NULL;
|
ssh_string name = NULL;
|
||||||
STRING *value = NULL;
|
ssh_string value = NULL;
|
||||||
|
|
||||||
SAFE_FREE(type_c);
|
SAFE_FREE(type_c);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user