Blame SOURCES/0012-libssh2_agent_init-init-fd-to-LIBSSH2_INVALID_SOCKET.patch

68eb44
From a958624be229315ab57017040ef15c5ae072d1ac Mon Sep 17 00:00:00 2001
68eb44
From: Matthias Kerestesch <mail@kerestesch.de>
68eb44
Date: Sat, 18 May 2013 23:01:35 +0200
68eb44
Subject: [PATCH] libssh2_agent_init: init ->fd to LIBSSH2_INVALID_SOCKET
68eb44
68eb44
... previously it was left at 0 which is a valid file descriptor!
68eb44
68eb44
Bug: https://trac.libssh2.org/ticket/265
68eb44
68eb44
Fixes #265
68eb44
68eb44
Upstream-commit: 1ad20ac7d3e21d091e7cfec58fda0afdc359360a
68eb44
---
68eb44
 src/agent.c | 1 +
68eb44
 1 file changed, 1 insertion(+)
68eb44
68eb44
diff --git a/src/agent.c b/src/agent.c
68eb44
index 1c65149..a8a5025 100644
68eb44
--- a/src/agent.c
68eb44
+++ b/src/agent.c
68eb44
@@ -652,6 +652,7 @@ libssh2_agent_init(LIBSSH2_SESSION *session)
68eb44
         return NULL;
68eb44
     }
68eb44
     memset(agent, 0, sizeof *agent);
68eb44
+    agent->fd = LIBSSH2_INVALID_SOCKET;
68eb44
     agent->session = session;
68eb44
     _libssh2_list_init(&agent->head);
68eb44
 
68eb44
-- 
68eb44
2.1.0
68eb44