diff options
author | Werner Koch <[email protected]> | 2004-01-29 20:17:27 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2004-01-29 20:17:27 +0000 |
commit | b11106ebf0e34caae45a68b87fb81f63faf2004f (patch) | |
tree | a5f6ba8a0dac961b66185dcf16078907dd810ef8 /agent/gpg-agent.c | |
parent | * README: Updated. (diff) | |
download | gnupg-b11106ebf0e34caae45a68b87fb81f63faf2004f.tar.gz gnupg-b11106ebf0e34caae45a68b87fb81f63faf2004f.zip |
* agent.h (server_control_s): Add connection_fd field.
* command.c (start_command_handler): Init it here.
* gpg-agent.c (agent_init_default_ctrl): and here.
* call-scd.c: Add the CTRL arg to all functions calling start_scd
and pass it to start_scd. Changed all callers
(start_scd): Keep track of the current active connection.
(agent_reset_scd): New.
* command.c (start_command_handler): Call it here.
* learncard.c (agent_handle_learn): Add arg CTRL; changed caller.
(send_cert_back): Ditto.
Diffstat (limited to 'agent/gpg-agent.c')
-rw-r--r-- | agent/gpg-agent.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c index 47420117e..22537aa3b 100644 --- a/agent/gpg-agent.c +++ b/agent/gpg-agent.c @@ -784,6 +784,8 @@ agent_exit (int rc) void agent_init_default_ctrl (struct server_control_s *ctrl) { + ctrl->connection_fd = -1; + /* Note we ignore malloc errors because we can't do much about it and the request will fail anyway shortly after this initialization. */ |