why do we return NULL

This commit is contained in:
2026-05-19 21:32:39 +01:00
parent 59da5998b8
commit 7e12382248
+1 -1
View File
@@ -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;