From eafccdb3150115e94f16a3a21ea989aeb65a0210 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 19 Dec 2012 19:52:11 +0100 Subject: bundles connection caching: some out of memory handling fixes --- lib/ssh.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/ssh.c') diff --git a/lib/ssh.c b/lib/ssh.c index 3a9729975..cb743eb41 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -2495,6 +2495,9 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block) #ifdef HAVE_LIBSSH2_KNOWNHOST_API DEBUGASSERT(sshc->kh == NULL); #endif +#ifdef HAVE_LIBSSH2_AGENT_API + DEBUGASSERT(sshc->ssh_agent == NULL); +#endif Curl_safefree(sshc->rsa_pub); Curl_safefree(sshc->rsa); -- cgit v1.2.3