mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 834526, r=cjones.
This commit is contained in:
parent
06d79bdc77
commit
d48efc0c7a
@ -642,7 +642,11 @@ bool Channel::ChannelImpl::ProcessOutgoingMessages() {
|
||||
struct cmsghdr *cmsg;
|
||||
const unsigned num_fds = msg->file_descriptor_set()->size();
|
||||
|
||||
DCHECK_LE(num_fds, FileDescriptorSet::MAX_DESCRIPTORS_PER_MESSAGE);
|
||||
if (num_fds > FileDescriptorSet::MAX_DESCRIPTORS_PER_MESSAGE) {
|
||||
LOG(FATAL) << "Too many file descriptors!";
|
||||
// This should not be reached.
|
||||
return false;
|
||||
}
|
||||
|
||||
msgh.msg_control = buf;
|
||||
msgh.msg_controllen = CMSG_SPACE(sizeof(int) * num_fds);
|
||||
|
Loading…
Reference in New Issue
Block a user