why do we return NULL
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user