From 58404116bcb38c1e40b837501c08bea78c734dd2 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 2 Feb 2009 16:20:55 +0000 Subject: Fix build warnings in session code. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@216 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/session.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libssh/session.c') diff --git a/libssh/session.c b/libssh/session.c index 8ac005b..c8e5a68 100644 --- a/libssh/session.c +++ b/libssh/session.c @@ -36,7 +36,7 @@ /** \brief creates a new ssh session * \returns new ssh_session pointer */ -SSH_SESSION *ssh_new() { +SSH_SESSION *ssh_new(void) { SSH_SESSION *session=malloc(sizeof (SSH_SESSION)); memset(session,0,sizeof(SSH_SESSION)); session->next_crypto=crypto_new(); @@ -53,8 +53,9 @@ SSH_SESSION *ssh_new() { } void ssh_cleanup(SSH_SESSION *session){ - enter_function(); int i; + enter_function(); + if(session->serverbanner) free(session->serverbanner); if(session->clientbanner) -- cgit