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

ldap-server: sscanf result was never used to mistyped var

This commit is contained in:
Matthieu Patou 2012-09-26 18:32:28 -07:00
parent 97d0ad0c5e
commit 85259635d6

View File

@ -217,9 +217,8 @@ static int ldapsrv_load_limits(struct ldapsrv_connection *conn)
int policy_value, s;
s = sscanf((const char *)el->values[i].data, "%255[^=]=%d", policy_name, &policy_value);
if (ret != 2 || policy_value == 0)
if (s != 2 || policy_value == 0)
continue;
if (strcasecmp("InitRecvTimeout", policy_name) == 0) {
conn->limits.initial_timeout = policy_value;
continue;