Home GnuPG
Diffusion GPGME 4faa0ccf58c7

w32: Don't use CloseHandle on an arbitrary integer.

Description

w32: Don't use CloseHandle on an arbitrary integer.

* src/assuan-support.c (my_waitpid): Do not close the PID = it is not
a handle.

At some time in the distant past we might have used the process object
as pid which obviously required a close. However this was changed and
so what we did here was to close an arbitrary handle (one which
matches the pid).

  • GnuPG-bug-id: T4237
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Nov 2 2018, 11:26 AM
Parents
rMda89528ac39b: w32: Revamp the closing of system objects.
Branches
Unknown
Tags
Unknown
Tasks
T4237: GPGME: Random crash when verifying CMS Signature on Windows