2004-03-11 Marcus Brinkmann <marcus@g10code.de>

* rungpg.c (gpg_cancel): Set GPG->fd_data_map to NULL after
	releasing it.
This commit is contained in:
Marcus Brinkmann 2004-03-11 13:54:27 +00:00
parent dcb04fb195
commit f7e02a469f
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2004-03-11 Marcus Brinkmann <marcus@g10code.de>
* rungpg.c (gpg_cancel): Set GPG->fd_data_map to NULL after
releasing it.
* engine-gpgsm.c (gpgsm_cancel): Only call assuan_disconnect if
GPGSM->assuan_ctx is not NULL. Set it to NULL afterwards.

View File

@ -293,7 +293,10 @@ gpg_cancel (void *engine)
if (gpg->colon.fd[1] != -1)
_gpgme_io_close (gpg->colon.fd[1]);
if (gpg->fd_data_map)
{
free_fd_data_map (gpg->fd_data_map);
gpg->fd_data_map = NULL;
}
if (gpg->cmd.fd != -1)
_gpgme_io_close (gpg->cmd.fd);