]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Fix fd leaks and double-free in srv_pipe error handling
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 13 Jan 2026 11:02:09 +0000 (11:02 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 13 Jan 2026 11:02:09 +0000 (11:02 +0000)
commitd45972d8b96e48abb3cb893d699f3f66a2a3f544
treebc0e1c448737e13fa0ff2af04bb93c47eec59895
parentd1dbf5855e88f189a61bd21581d7ea5de9c15254
[Fix] Fix fd leaks and double-free in srv_pipe error handling

- Close attached_fd before freeing request data when sendmsg fails
- Fix double-free in rspamd_srv_pipe_ctx_destroy: items in send_queue
  are also in the hash table, so only iterate hash to free
- Close attached_fd for unsent requests during shutdown
src/libserver/rspamd_control.c