From: Thomas Veerman Date: Wed, 17 Aug 2011 13:42:38 +0000 (+0000) Subject: Range fix from PFS X-Git-Tag: v3.2.0~353 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/syslog.3.html?a=commitdiff_plain;h=a18a007361e446a259b2a618ac42f91ea0fdda25;p=minix.git Range fix from PFS --- diff --git a/servers/apfs/uds.c b/servers/apfs/uds.c index fed57afdf..a0d629796 100644 --- a/servers/apfs/uds.c +++ b/servers/apfs/uds.c @@ -603,7 +603,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;