mirror of
https://github.com/mainnika/nginx-auth-ldap.git
synced 2026-06-12 18:03:36 +00:00
Merge pull request #109 from rascal-hats/patch-1
Update ngx_http_auth_ldap_module.c - Initialize variable before use.
This commit is contained in:
@@ -803,6 +803,7 @@ ngx_http_auth_ldap_init_cache(ngx_cycle_t *cycle)
|
|||||||
}
|
}
|
||||||
|
|
||||||
want = (conf->cache_size + 7) / 8;
|
want = (conf->cache_size + 7) / 8;
|
||||||
|
count = 0;
|
||||||
for (i = 0; i < sizeof(primes)/sizeof(primes[0]); i++) {
|
for (i = 0; i < sizeof(primes)/sizeof(primes[0]); i++) {
|
||||||
count = primes[i];
|
count = primes[i];
|
||||||
if (count >= want) {
|
if (count >= want) {
|
||||||
|
|||||||
Reference in New Issue
Block a user