mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
userauth: fill in missing error path when agent goes away.
If the agent client code doesn't even manage to read a full response message at all (for example, because the agent it's talking to is Pageant running in debug mode and you just ^Ced it or it crashed, which is what's been happening to me all afternoon), then previously, the userauth code would loop back round to the top of the main loop without having actually sent any request, so the client code would deadlock waiting for a response to nothing.
This commit is contained in:
parent
84fa07cfeb
commit
563cb062b8
@ -782,6 +782,13 @@ static void ssh2_userauth_process_queue(PacketProtocolLayer *ppl)
|
||||
s->suppress_wait_for_response_packet = true;
|
||||
ssh_free_pktout(s->pktout);
|
||||
}
|
||||
} else {
|
||||
ppl_logevent("Pageant failed to respond to "
|
||||
"signing request");
|
||||
ppl_printf("Pageant failed to "
|
||||
"respond to signing request\r\n");
|
||||
s->suppress_wait_for_response_packet = true;
|
||||
ssh_free_pktout(s->pktout);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user