From: Ben Gras Date: Fri, 5 Aug 2011 16:13:33 +0000 (+0000) Subject: pfs: fix range check X-Git-Tag: v3.2.0~355 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/rndc.html?a=commitdiff_plain;h=ee48228aa0e9eb58ae8161d27bd1c62a6334dc98;p=minix.git pfs: fix range check . debugged and fixed by Jan Wieck --- diff --git a/servers/pfs/uds.c b/servers/pfs/uds.c index a5fb519fd..e184191c8 100644 --- a/servers/pfs/uds.c +++ b/servers/pfs/uds.c @@ -605,7 +605,7 @@ PUBLIC int do_listen(message *dev_m_in, message *dev_m_out) if (uds_fd_table[minor].listening == 0) { /* 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 */ uds_fd_table[minor].backlog_size = backlog_size;