diff options
author | Moritz Schulte <[email protected]> | 2005-01-26 22:33:11 +0000 |
---|---|---|
committer | Moritz Schulte <[email protected]> | 2005-01-26 22:33:11 +0000 |
commit | 0cb7a855abde6df462c9333ac59d4675cdad790a (patch) | |
tree | 3c03fafd9ee71aa92eaed1e55c56a486cb8be058 /agent/command-ssh.c | |
parent | added missing file (diff) | |
download | gnupg-0cb7a855abde6df462c9333ac59d4675cdad790a.tar.gz gnupg-0cb7a855abde6df462c9333ac59d4675cdad790a.zip |
2005-01-26 Moritz Schulte <[email protected]>
* command-ssh.c (ssh_handler_sign_request): Confirm to agent
protocol in case of failure.
Diffstat (limited to 'agent/command-ssh.c')
-rw-r--r-- | agent/command-ssh.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/agent/command-ssh.c b/agent/command-ssh.c index a76bbfff7..4c13f5059 100644 --- a/agent/command-ssh.c +++ b/agent/command-ssh.c @@ -1706,14 +1706,14 @@ ssh_handler_sign_request (ctrl_t ctrl, estream_t request, estream_t response) if (! bad) { /* Done. */ - es_write_byte (response, SSH_RESPONSE_SIGN_RESPONSE); - if (! es_ferror (response)) + if (! err) { - if (! err) + es_write_byte (response, SSH_RESPONSE_SIGN_RESPONSE); + if (! es_ferror (response)) es_write_string (response, sig, sig_n); - else - es_write_byte (response, SSH_RESPONSE_FAILURE); } + else + es_write_byte (response, SSH_RESPONSE_FAILURE); } gcry_sexp_release (key); |