Require callers to use ibuf_fd_get() to extract the passed fd from an ibuf.
authorclaudio <claudio@openbsd.org>
Tue, 24 Oct 2023 14:05:23 +0000 (14:05 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 24 Oct 2023 14:05:23 +0000 (14:05 +0000)
commitd8d5a064017c2464a25817d4f5f7e10f8c46d283
treef3627b6c65cad7d7b7950754b2e77ae6be06206d
parentfe6f1a998b92eaf2abdfab0973d16d28a79212f6
Require callers to use ibuf_fd_get() to extract the passed fd from an ibuf.

In imsg_free() close any fd that was not claimed automatically to prevent
filedescriptor leaks. In ibuf_dequeue() remvoe code which is now part of
imsg_free().
OK tb@
lib/libutil/imsg-buffer.c