From: Joachim Schmitz Date: Mon, 17 Sep 2012 12:26:31 +0000 (-0700) Subject: libreplace: Bug 8107, Fix poll replacement to become a msleep replacement X-Git-Tag: talloc-2.0.8~281 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7542b63188f7e73588c9abb40e36a910c87bc534;p=thirdparty%2Fsamba.git libreplace: Bug 8107, Fix poll replacement to become a msleep replacement Signed-off-by: Jeremy Allison --- diff --git a/lib/replace/poll.c b/lib/replace/poll.c index 95b2f883bf8..27876bb0670 100644 --- a/lib/replace/poll.c +++ b/lib/replace/poll.c @@ -46,7 +46,7 @@ int rep_poll(struct pollfd *fds, nfds_t nfds, int timeout) int rc; nfds_t i; - if (fds == NULL) { + if ((fds == NULL) && (nfds != 0)) { errno = EFAULT; return -1; }