mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-12 03:00:26 +09:00
@@ -321,6 +321,7 @@ static int main_loop(ssh_channel chan) {
|
|||||||
rc = ssh_event_dopoll(event, 1000);
|
rc = ssh_event_dopoll(event, 1000);
|
||||||
if (rc == SSH_ERROR){
|
if (rc == SSH_ERROR){
|
||||||
fprintf(stderr, "Error : %s\n", ssh_get_error(session));
|
fprintf(stderr, "Error : %s\n", ssh_get_error(session));
|
||||||
|
ssh_event_free(event);
|
||||||
ssh_disconnect(session);
|
ssh_disconnect(session);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user