summaryrefslogtreecommitdiffstats
path: root/lib/replace/poll.c
diff options
context:
space:
mode:
authorJoachim Schmitz <schmitz@hp.com>2012-09-17 05:26:31 -0700
committerJeremy Allison <jra@samba.org>2012-09-17 15:01:39 -0700
commit7542b63188f7e73588c9abb40e36a910c87bc534 (patch)
tree57062f7c79e56b6dbdf0b03de05d2c150c153911 /lib/replace/poll.c
parentffd61e2bbf46ab8660c32b90c547beb8b77fcb9d (diff)
downloadsamba-7542b63188f7e73588c9abb40e36a910c87bc534.tar.gz
samba-7542b63188f7e73588c9abb40e36a910c87bc534.tar.xz
samba-7542b63188f7e73588c9abb40e36a910c87bc534.zip
libreplace: Bug 8107, Fix poll replacement to become a msleep replacement
Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/replace/poll.c')
-rw-r--r--lib/replace/poll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/replace/poll.c b/lib/replace/poll.c
index 95b2f883bf..27876bb067 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;
}