From 77743b75f41bd353c09da6a740562d621ed9382d Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Tue, 4 Mar 2008 04:25:48 +0000 Subject: 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 --- include/libssh/priv.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'include/libssh') diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 08f9744..685630b 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; -- cgit