2002-02-01 Marcus Brinkmann <marcus@g10code.de>

* engine-gpgsm.c (gpgsm_status_handler): At error, terminate the
	connection to the server.
This commit is contained in:
Marcus Brinkmann 2002-02-01 18:10:19 +00:00
parent ebd6ac7b7d
commit 3139e2b91a
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -549,6 +549,11 @@ gpgsm_status_handler (void *opaque, int pid, int fd)
/* 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;
}