Home GnuPG
Diffusion GnuPG a67a09be30f5

scd,w32: Fix socket resource leak.

Description

scd,w32: Fix socket resource leak.

* scd/scdaemon.c (main): Use gnupg_fd_t for socket, and use
assuan_sock_close for the socket allocated by assuan_sock_new.
(handle_connections): Use gnupg_fd_t for listen_fd.
Use assuan_sock_close for the socket by npth_accept.
  • GnuPG-bug-id: T5029
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Mar 29 2022, 2:55 AM
Parents
rG435861b9fb8c: dirmngr: Escape more characters in WKD requests.
Branches
Unknown
Tags
Unknown
Tasks
T5029: server socket/pipe handling in GnuPG