diff options
author | Mohammed Sadiq <sadiq@sadiqpk.org> | 2019-02-27 18:12:48 +0530 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2019-04-20 02:09:04 -0400 |
commit | 6a988bb0d0148db1646be7c07aa81922afc9cc7f (patch) | |
tree | c536c29f5f1e95835630abe45f41515b3980f3d6 /src/mod_authn_ldap.c | |
parent | 599b4f05c8ccebd0c06074972824b930afc9c832 (diff) | |
download | lighttpd-git-6a988bb0d0148db1646be7c07aa81922afc9cc7f.tar.gz |
[multiple] cleaner calloc use in SETDEFAULTS_FUNC
github: closes #99
x-ref:
"cleaner calloc use in SETDEFAULTS_FUNC"
https://github.com/lighttpd/lighttpd1.4/pull/99
Diffstat (limited to 'src/mod_authn_ldap.c')
-rw-r--r-- | src/mod_authn_ldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_authn_ldap.c b/src/mod_authn_ldap.c index 233fc239..26191f5c 100644 --- a/src/mod_authn_ldap.c +++ b/src/mod_authn_ldap.c @@ -133,7 +133,7 @@ config_values_t cv[] = { { NULL, NULL, T_CONFIG_UNSET, T_CONFIG_SCOPE_UNSET } }; - p->config_storage = calloc(1, srv->config_context->used * sizeof(plugin_config *)); + p->config_storage = calloc(srv->config_context->used, sizeof(plugin_config *)); for (i = 0; i < srv->config_context->used; i++) { data_config const* config = (data_config const*)srv->config_context->data[i]; |