From 6be6ad4fe3ada0b1b80228de0fde4ebad9879915 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Thu, 25 Feb 2016 12:59:00 +0100 Subject: [PATCH 4/5] makefd_xprt() checks that the filedesriptor is lower than FD_SETSIZE. But with tirpc now using poll(), this limitation does not exist anymore. Remove the check completly. Signed-off-by: Thorsten Kukuk --- src/svc_vc.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/svc_vc.c b/src/svc_vc.c index 6ae613d..7415244 100644 --- a/src/svc_vc.c +++ b/src/svc_vc.c @@ -270,14 +270,8 @@ makefd_xprt(fd, sendsize, recvsize) struct cf_conn *cd; const char *netid; struct __rpc_sockinfo si; - - assert(fd != -1); - if (fd >= FD_SETSIZE) { - warnx("svc_vc: makefd_xprt: fd too high\n"); - xprt = NULL; - goto done; - } + assert(fd != -1); xprt = mem_alloc(sizeof(SVCXPRT)); if (xprt == NULL) { -- 1.8.5.6