pfs: fix range check
. debugged and fixed by Jan Wieck
This commit is contained in:
parent
e187d30348
commit
ee48228aa0
1 changed files with 1 additions and 1 deletions
|
@ -605,7 +605,7 @@ PUBLIC int do_listen(message *dev_m_in, message *dev_m_out)
|
||||||
if (uds_fd_table[minor].listening == 0) {
|
if (uds_fd_table[minor].listening == 0) {
|
||||||
|
|
||||||
/* See if backlog_size is between 0 and UDS_SOMAXCONN */
|
/* See if backlog_size is between 0 and UDS_SOMAXCONN */
|
||||||
if (backlog_size >= 0 || backlog_size < UDS_SOMAXCONN) {
|
if (backlog_size >= 0 && backlog_size < UDS_SOMAXCONN) {
|
||||||
|
|
||||||
/* use the user provided backlog_size */
|
/* use the user provided backlog_size */
|
||||||
uds_fd_table[minor].backlog_size = backlog_size;
|
uds_fd_table[minor].backlog_size = backlog_size;
|
||||||
|
|
Loading…
Reference in a new issue