Skip to content

Commit

Permalink
Yet another fix for ssh-agents.
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Koskela committed Sep 11, 2015
1 parent 4197b43 commit 638216f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions uploadthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,13 @@ LIBSSH2_AGENT* UploadThread::trySshAgent(LIBSSH2_SESSION* session) {
while (1) {
rc = libssh2_agent_get_identity(agent, &identity, prev_identity);

if (rc == 1)
break;
if (rc == 1) {
emit uploadMessage("failure due reaching end of public keys");
return shutdownAgent(agent);
}

if (rc < 0) {
emit uploadMessage("failure obtaining identity from ssh-agent support");
rc = 1;
emit uploadMessage("failure in obtaining identity from ssh-agent");
return shutdownAgent(agent);
}

Expand Down

0 comments on commit 638216f

Please sign in to comment.