[PATCH] fixed Windows compile

2016-10-26 Thread Jeremy Cross
Signed-off-by: Jeremy Cross 
---
 src/session.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/session.c b/src/session.c
index c29af1e..f6d926a 100644
--- a/src/session.c
+++ b/src/session.c
@@ -270,7 +270,9 @@ void ssh_free(ssh_session session) {
   ssh_list_free(session->opts.identity);
   }
 
+#ifndef _WIN32
   ssh_agent_state_free (session->agent_state);
+#endif
   session->agent_state = NULL;
 
   SAFE_FREE(session->auth_auto_state);
-- 
2.9.0.windows.1

<>

Re: [PATCH] fixed Windows compile

2016-10-22 Thread Andreas Schneider
On Friday, 14 October 2016 18:25:45 CEST Jeremy Cross wrote:
> Signed-off-by: Jeremy Cross >


This is a html message. git cannot deal with that. Could you please resend the 
patch. Maybe as an attachment ...


Thanks,


Andreas

> --
> src/session.c | 2 ++
> 1 file changed, 2 insertions(+)
> 
> diff --git a/src/session.c b/src/session.c
> index c29af1e..f6d926a 100644
> --- a/src/session.c
> +++ b/src/session.c
> @@ -270,7 +270,9 @@ void ssh_free(ssh_session session) {
>ssh_list_free(session->opts.identity);
>}
> +#ifndef _WIN32
>ssh_agent_state_free (session->agent_state);
> +#endif
>session->agent_state = NULL;
>SAFE_FREE(session->auth_auto_state);



-- 
Andreas Schneider   GPG-ID: CC014E3D
www.cryptomilk.orga...@cryptomilk.org



[PATCH] fixed Windows compile

2016-10-14 Thread Jeremy Cross
Signed-off-by: Jeremy Cross >
--
src/session.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/src/session.c b/src/session.c
index c29af1e..f6d926a 100644
--- a/src/session.c
+++ b/src/session.c
@@ -270,7 +270,9 @@ void ssh_free(ssh_session session) {
   ssh_list_free(session->opts.identity);
   }
+#ifndef _WIN32
   ssh_agent_state_free (session->agent_state);
+#endif
   session->agent_state = NULL;
   SAFE_FREE(session->auth_auto_state);