1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

pthreadpool: correctly handle pthreadpool_tevent_register_ev() failures

It returns errno values instead of setting 'errno'.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Stefan Metzmacher 2018-04-20 15:05:44 +02:00
parent c310647e56
commit 19e4a08577

View File

@ -289,8 +289,7 @@ struct tevent_req *pthreadpool_tevent_job_send(
}
ret = pthreadpool_tevent_register_ev(pool, ev);
if (ret != 0) {
tevent_req_error(req, errno);
if (tevent_req_error(req, ret)) {
return tevent_req_post(req, ev);
}