From: Ralf Haferkamp Date: Mon, 10 Nov 2008 14:48:06 +0000 (+0000) Subject: Fixed "nssov-map" handling when using slapd.conf (ITS#5801) X-Git-Tag: ACLCHECK_0~1141 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=def11e2fced6e3a23a1c6878316f331ad9502e2b;p=openldap Fixed "nssov-map" handling when using slapd.conf (ITS#5801) --- 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; }