From def11e2fced6e3a23a1c6878316f331ad9502e2b Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Mon, 10 Nov 2008 14:48:06 +0000 Subject: [PATCH] Fixed "nssov-map" handling when using slapd.conf (ITS#5801) --- contrib/slapd-modules/nssov/nssov.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/slapd-modules/nssov/nssov.c b/contrib/slapd-modules/nssov/nssov.c index 741bc1d69a..9e4d6fead3 100644 --- a/contrib/slapd-modules/nssov/nssov.c +++ b/contrib/slapd-modules/nssov/nssov.c @@ -476,7 +476,6 @@ nss_cf_gen(ConfigArgs *c) case NSS_MAP: rc = 1; for (i=NM_alias;ini_maps[i]; for (j=0;!BER_BVISNULL(&mi->mi_attrkeys[j]);j++) { @@ -486,10 +485,10 @@ nss_cf_gen(ConfigArgs *c) map.bv_len = nss_svcs[i].word.bv_len + mi->mi_attrkeys[j].bv_len + - mi->mi_attrs->an_desc->ad_cname.bv_len + 2; + mi->mi_attrs[j].an_desc->ad_cname.bv_len + 2; map.bv_val = ch_malloc(map.bv_len + 1); sprintf(map.bv_val, "%s %s %s", nss_svcs[i].word.bv_val, - mi->mi_attrkeys[j].bv_val, mi->mi_attrs->an_desc->ad_cname.bv_val ); + mi->mi_attrkeys[j].bv_val, mi->mi_attrs[j].an_desc->ad_cname.bv_val ); ber_bvarray_add( &c->rvalue_vals, &map ); rc = 0; } -- 2.39.5