ldap-server: sscanf result was never used to mistyped var
authorMatthieu Patou <mat@matws.net>
Thu, 27 Sep 2012 01:32:28 +0000 (18:32 -0700)
committerMatthieu Patou <mat@matws.net>
Mon, 8 Oct 2012 04:51:02 +0000 (21:51 -0700)
source4/ldap_server/ldap_server.c

index 2221976ccae8075ce2c8512e9c7fa62c37df4b08..a06feb0eb08ac6e416f98c41151bde254c0d56fd 100644 (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;