aboutsummaryrefslogtreecommitdiffstats
path: root/g13/g13.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2009-10-28 12:02:15 +0000
committerWerner Koch <[email protected]>2009-10-28 12:02:15 +0000
commita1b614285518c1e4928919b905e992f35f4a3224 (patch)
treeb8b0fdbc2459188fcdef689b32b17cf40871f644 /g13/g13.c
parent2009-10-20 Marcus Brinkmann <[email protected]> (diff)
downloadgnupg-a1b614285518c1e4928919b905e992f35f4a3224.tar.gz
gnupg-a1b614285518c1e4928919b905e992f35f4a3224.zip
[scd] Memory leak fix.
[g13] Send MOUNTPOINT status line
Diffstat (limited to 'g13/g13.c')
-rw-r--r--g13/g13.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/g13/g13.c b/g13/g13.c
index 754371df2..152058e28 100644
--- a/g13/g13.c
+++ b/g13/g13.c
@@ -420,6 +420,8 @@ main ( int argc, char **argv)
/* Setup a default control structure for command line mode. */
memset (&ctrl, 0, sizeof ctrl);
g13_init_default_ctrl (&ctrl);
+ ctrl.no_server = 1;
+ ctrl.status_fd = -1; /* No status output. */
/* Set the default option file */
if (default_config )
@@ -678,6 +680,7 @@ main ( int argc, char **argv)
case aServer:
{
start_idle_task ();
+ ctrl.no_server = 0;
err = g13_server (&ctrl);
if (err)
log_error ("server exited with error: %s <%s>\n",