commit 7e123822485df1e01abf2a698f10b21540f4c24e
parent 59da5998b89b8c1aa724dad0eecd0b444af11fdc
Author: Daniel Barlow <dan@telent.net>
Date: Tue, 19 May 2026 21:32:39 +0100
why do we return NULL
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/luad.c b/luad.c
@@ -54,7 +54,7 @@ int * fds_from_msg(struct msghdr *msg, int * peer_fds) {
// * there may be multiple SCM_RIGHTS messages
// * we expect three fds
// * if we get some number other than three, we should
- // close them and return NULL
+ // close all of them and return NULL because someone is up to no good
for (struct cmsghdr* cmsg = CMSG_FIRSTHDR(msg);
cmsg != NULL;