commit 2c29eec0530d2a05c4729d8414aa3f3a6540971e from: Omar Polo via: Thomas Adam date: Fri Nov 03 17:08:16 2023 UTC use ibuf_fd_set() instead of reaching into the ibuf struct discussed with tb@ commit - 64c827b3c0cbf84a063d81619ae309a543511a82 commit + 2c29eec0530d2a05c4729d8414aa3f3a6540971e blob - 07c9d8b94e70d423060d1a112e176a8a90dc20dd blob + bc5e676055fe92ff94c40e173d0897a7b49775cf --- lib/privsep.c +++ lib/privsep.c @@ -419,7 +419,7 @@ got_privsep_send_tree_req(struct imsgbuf *ibuf, int fd } } - wbuf->fd = fd; + ibuf_fd_set(wbuf, fd); imsg_close(ibuf, wbuf); return flush_imsg(ibuf); @@ -612,7 +612,7 @@ got_privsep_send_fetch_req(struct imsgbuf *ibuf, int f return err; } } - wbuf->fd = fd; + ibuf_fd_set(wbuf, fd); fd = -1; imsg_close(ibuf, wbuf);