Print this page
use memset, for Albert
4075 nscd spuriously thinks all databases are privileged
*** 203,213 ****
char *dbn;
const char *n;
char *me = "getparams";
p = ¶ms->p;
! (void) memset(p, 0, sizeof (*p));
(*initf)(p);
params->dbi = -1;
params->cfgdbi = -1;
params->compati = -1;
params->dnsi = -1;
--- 203,213 ----
char *dbn;
const char *n;
char *me = "getparams";
p = ¶ms->p;
! (void) memset(params, 0, sizeof (nscd_nsw_params_t));
(*initf)(p);
params->dbi = -1;
params->cfgdbi = -1;
params->compati = -1;
params->dnsi = -1;
*** 237,247 ****
/*
* use the switch policy for passwd_compat or
* group_compat?
*/
if (p->config_name != NULL) {
-
n = p->config_name;
for (j = 0; j < NSCD_NUM_DB; j++) {
dbn = NSCD_NSW_DB_NAME(j);
if (*n == *dbn) {
if (strcmp(n, dbn) == 0) {
--- 237,246 ----