mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Fully initialize msqids[]. This could lead to ENOSPC and other strange
stuff. PR: 21085 Submitted by: Marcin Cieslak <saper@SYSTEM.PL>
This commit is contained in:
parent
df470af5f8
commit
6413a4bc9d
1 changed files with 1 additions and 0 deletions
|
|
@ -188,6 +188,7 @@ msginit(dummy)
|
|||
for (i = 0; i < msginfo.msgmni; i++) {
|
||||
msqids[i].msg_qbytes = 0; /* implies entry is available */
|
||||
msqids[i].msg_perm.seq = 0; /* reset to a known value */
|
||||
msqids[i].msg_perm.mode = 0;
|
||||
}
|
||||
}
|
||||
SYSINIT(sysv_msg, SI_SUB_SYSV_MSG, SI_ORDER_FIRST, msginit, NULL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue