mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 20:30:38 +09:00
Fix underflow when leave_function() are unbalanced
This commit is contained in:
committed by
Andreas Schneider
parent
4768cf3e85
commit
dd68bae776
@@ -77,7 +77,7 @@ typedef struct kex_struct {
|
||||
|
||||
struct error_struct {
|
||||
/* error handling */
|
||||
int error_code;
|
||||
unsigned int error_code;
|
||||
char error_buffer[ERROR_BUFFERLEN];
|
||||
};
|
||||
|
||||
|
||||
@@ -341,7 +341,6 @@ socket_t ssh_connect_host(ssh_session session, const char *host,
|
||||
ssh_set_error(session, SSH_FATAL, "Connect failed: %s", strerror(errno));
|
||||
ssh_connect_socket_close(s);
|
||||
s = -1;
|
||||
leave_function();
|
||||
continue;
|
||||
} else {
|
||||
/* We are connected */
|
||||
|
||||
Reference in New Issue
Block a user