mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
ldap_server: Fix CID 1435731 Unchecked return value
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
c8b4f31105
commit
312faa0b82
@ -494,9 +494,17 @@ static bool ldapsrv_call_read_next(struct ldapsrv_connection *conn)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!timeval_is_zero(&conn->limits.endtime)) {
|
if (!timeval_is_zero(&conn->limits.endtime)) {
|
||||||
tevent_req_set_endtime(subreq,
|
bool ok;
|
||||||
conn->connection->event.ctx,
|
ok = tevent_req_set_endtime(subreq,
|
||||||
conn->limits.endtime);
|
conn->connection->event.ctx,
|
||||||
|
conn->limits.endtime);
|
||||||
|
if (!ok) {
|
||||||
|
ldapsrv_terminate_connection(
|
||||||
|
conn,
|
||||||
|
"ldapsrv_call_read_next: "
|
||||||
|
"no memory for tevent_req_set_endtime");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
tevent_req_set_callback(subreq, ldapsrv_call_read_done, conn);
|
tevent_req_set_callback(subreq, ldapsrv_call_read_done, conn);
|
||||||
conn->sockets.read_req = subreq;
|
conn->sockets.read_req = subreq;
|
||||||
|
Reference in New Issue
Block a user