mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
Fix underflow when leave_function() are unbalanced
This commit is contained in:
@@ -238,7 +238,7 @@ typedef struct signature_struct {
|
|||||||
|
|
||||||
struct error_struct {
|
struct error_struct {
|
||||||
/* error handling */
|
/* error handling */
|
||||||
int error_code;
|
unsigned int error_code;
|
||||||
char error_buffer[ERROR_BUFFERLEN];
|
char error_buffer[ERROR_BUFFERLEN];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -246,7 +246,6 @@ socket_t ssh_connect_host(SSH_SESSION *session, const char *host,
|
|||||||
ssh_set_error(session, SSH_FATAL, "Connect failed: %s", strerror(errno));
|
ssh_set_error(session, SSH_FATAL, "Connect failed: %s", strerror(errno));
|
||||||
close(s);
|
close(s);
|
||||||
s = -1;
|
s = -1;
|
||||||
leave_function();
|
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
/* We are connected */
|
/* We are connected */
|
||||||
|
|||||||
Reference in New Issue
Block a user