summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2013-08-23 15:33:55 -0400
committerRichard Lowe <richlowe@richlowe.net>2013-08-31 18:32:41 -0400
commit03d446db9be5b68e630562c8b6b14aa7c8a0f4dc (patch)
tree8519d6c1544ccf8b9b06ac31bd892166190bda1d
parentab823b7f933f787dbdf7a0bb790639210c583869 (diff)
downloadillumos-joyent-03d446db9be5b68e630562c8b6b14aa7c8a0f4dc.tar.gz
4075 nscd spuriously thinks all databases are privileged
Reviewed by: Marcel Telka <marcel@telka.sk> Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net> Reviewed by: Albert Lee <trisk@nexenta.com> Approved by: Dan McDonald <danmcd@nexenta.com>
-rw-r--r--usr/src/cmd/nscd/nscd_switch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/src/cmd/nscd/nscd_switch.c b/usr/src/cmd/nscd/nscd_switch.c
index 44a02b2427..40f0e5da62 100644
--- a/usr/src/cmd/nscd/nscd_switch.c
+++ b/usr/src/cmd/nscd/nscd_switch.c
@@ -205,7 +205,7 @@ getparams(
char *me = "getparams";
p = &params->p;
- (void) memset(p, 0, sizeof (*p));
+ (void) memset(params, 0, sizeof (nscd_nsw_params_t));
(*initf)(p);
params->dbi = -1;
params->cfgdbi = -1;
@@ -239,7 +239,6 @@ getparams(
* 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);