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:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user