aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-12-19 19:52:11 +0100
committerYang Tse <yangsita@gmail.com>2012-12-19 19:53:17 +0100
commiteafccdb3150115e94f16a3a21ea989aeb65a0210 (patch)
tree2385a66043f2202abd44be144aa26cfb3dc7b320 /lib/ssh.c
parentb7a1eccce8daeb69c9ffedfabc89c353c8be4969 (diff)
bundles connection caching: some out of memory handling fixes
Diffstat (limited to 'lib/ssh.c')
-rw-r--r--lib/ssh.c3
1 files changed, 3 insertions, 0 deletions
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);