* engine-gpgsm.c (gpgsm_status_handler): At error, terminate the
connection to the server.
+2002-02-01 Marcus Brinkmann <marcus@g10code.de>
+
+ * engine-gpgsm.c (gpgsm_status_handler): At error, terminate the
+ connection to the server.
+
2002-01-31 Marcus Brinkmann <marcus@g10code.de>
* rungpg.h: Add STATUS_KEY_CREATED.
/* FIXME Save error somewhere. */
if (gpgsm->status.fnc)
gpgsm->status.fnc (gpgsm->status.fnc_value, STATUS_EOF, "");
+
+ /* XXX: If an error occured, try our best to terminate the
+ connection. */
+ if (line[0] == 'E')
+ assuan_write_line (gpgsm->assuan_ctx, "BYE");
return 1;
}