Skip to content
Permalink
Browse files

Preserve error info from agent_list_identities()

  • Loading branch information...
Zenju committed Jun 3, 2019
1 parent 86e52ba commit 7376201178657d503e949c10aa5cc57e83b82870
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/agent.c
@@ -522,7 +522,9 @@ agent_list_identities(LIBSSH2_AGENT *agent)

rc = agent->ops->transact(agent, transctx);
if(rc) {
goto error;
LIBSSH2_FREE(agent->session, transctx->response);
transctx->response = NULL;
return rc;
}
transctx->request = NULL;

0 comments on commit 7376201

Please sign in to comment.
You can’t perform that action at this time.