mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
CVE-2021-3670 ldap_server: Ensure value of MaxQueryDuration is greater than zero
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14694
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit e1ab0c4362
)
This commit is contained in:
parent
f72090064b
commit
f9b2267c6e
@ -255,7 +255,9 @@ static int ldapsrv_load_limits(struct ldapsrv_connection *conn)
|
||||
continue;
|
||||
}
|
||||
if (strcasecmp("MaxQueryDuration", policy_name) == 0) {
|
||||
conn->limits.search_timeout = policy_value;
|
||||
if (policy_value > 0) {
|
||||
conn->limits.search_timeout = policy_value;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user