1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-21 14:00:51 +03:00

Agent.c : Preserve error info from agent_list_identities() (#374)

Files : agent.c

Notes : 
Currently the error details as returned by agent_transact_pageant() are overwritten by a generic "agent list id failed" message by int agent_list_identities(LIBSSH2_AGENT* agent).

Credit :
Zenju
This commit is contained in:
Zenju
2019-07-02 00:01:13 +02:00
committed by Will Cosgrove
parent bc564e9167
commit 81b2548fef

View File

@@ -522,7 +522,9 @@ agent_list_identities(LIBSSH2_AGENT *agent)
rc = agent->ops->transact(agent, transctx); rc = agent->ops->transact(agent, transctx);
if(rc) { if(rc) {
goto error; LIBSSH2_FREE(agent->session, transctx->response);
transctx->response = NULL;
return rc;
} }
transctx->request = NULL; transctx->request = NULL;