s3-prefork: Directly fail if tevent_req_is_unix_error() fails.
[amitay/samba.git] / source3 / lib / server_prefork.c
index 3d35e1c6ca6415a9d1d28217865369dcfc552426..49d1778085c537f1969c63c0951e4c16a712faec 100644 (file)
@@ -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) {