1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-01 11:26:52 +03:00

fixed null pointer into options and ssh_set_error()

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@138 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Aris Adamantiadis
2008-03-04 04:25:48 +00:00
parent 077dd81fcc
commit 77743b75f4
3 changed files with 18 additions and 16 deletions

View File

@ -205,7 +205,15 @@ typedef struct signature_struct {
#endif
} SIGNATURE;
struct error_struct {
/* error handling */
int error_code;
char error_buffer[ERROR_BUFFERLEN];
};
struct ssh_options_struct {
struct error_struct error;
char *banner; /* explicit banner to send */
char *username;
char *host;
@ -275,14 +283,6 @@ struct channel_struct {
int blocking;
};
struct error_struct {
/* error handling */
int error_code;
char error_buffer[ERROR_BUFFERLEN];
};
struct ssh_session {
struct error_struct error;
struct socket *socket;