Fix underflow when leave_function() are unbalanced

This commit is contained in:
Aris Adamantiadis
2010-01-26 14:42:49 +01:00
committed by Andreas Schneider
parent 4768cf3e85
commit dd68bae776
2 changed files with 1 additions and 2 deletions

View File

@@ -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];
};

View File

@@ -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 */