diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-03-04 04:25:48 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-03-04 04:25:48 +0000 |
commit | 77743b75f41bd353c09da6a740562d621ed9382d (patch) | |
tree | 8ad12c408d352bd171b3f160aee109a660812c3d /include/libssh/priv.h | |
parent | 077dd81fcc9453613de18c6d037ef61f3a8e161c (diff) | |
download | libssh-77743b75f41bd353c09da6a740562d621ed9382d.tar.gz libssh-77743b75f41bd353c09da6a740562d621ed9382d.tar.xz libssh-77743b75f41bd353c09da6a740562d621ed9382d.zip |
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
Diffstat (limited to 'include/libssh/priv.h')
-rw-r--r-- | include/libssh/priv.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 08f9744d..685630bd 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -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; |