mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-01-21 05:08:46 -05:00
ClamD opens at least one socket that is then passed to server-th as newly allocated memory. server-th then appends to this structure with additional FDs as it handles connections. While cleaning up during server shutdown, server-th loops through all FDs and closes them, followed by clamd closing the FDs it opened, which have now been previously closed by server-th. This fix skips closing the FDs in server-th that were opened in clamd. CLAM-2850