summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/server_prefork.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/server_prefork.c b/source3/lib/server_prefork.c
index 3d35e1c6ca..49d1778085 100644
--- a/source3/lib/server_prefork.c
+++ b/source3/lib/server_prefork.c
@@ -666,7 +666,9 @@ int prefork_listen_recv(struct tevent_req *req,
if (state->error) {
ret = state->error;
} else {
- tevent_req_is_unix_error(req, &ret);
+ if (!tevent_req_is_unix_error(req, &ret)) {
+ ret = 0;
+ }
}
if (ret) {