Fix underflow when leave_function() are unbalanced

This commit is contained in:
Aris Adamantiadis
2010-01-26 14:42:49 +01:00
parent 5c3ea09e02
commit ce9be6dfca
2 changed files with 1 additions and 2 deletions

View File

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

View File

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