summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2012-09-26 18:32:28 -0700
committerMatthieu Patou <mat@matws.net>2012-10-07 21:51:02 -0700
commit85259635d60bc29421a878ec4118d4449c9a359d (patch)
tree4ea3a24c60d5ccd0f1ee0831ef9e8b21feb3ca16 /source4
parent97d0ad0c5eeaed7d06a27a21b96b78536b1dc5df (diff)
downloadsamba-85259635d60bc29421a878ec4118d4449c9a359d.tar.gz
samba-85259635d60bc29421a878ec4118d4449c9a359d.tar.bz2
samba-85259635d60bc29421a878ec4118d4449c9a359d.zip
ldap-server: sscanf result was never used to mistyped var
Diffstat (limited to 'source4')
-rw-r--r--source4/ldap_server/ldap_server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c
index 2221976cca..a06feb0eb0 100644
--- a/source4/ldap_server/ldap_server.c
+++ b/source4/ldap_server/ldap_server.c
@@ -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;