From aa2e9413f188a53c292d5e56e449a64cbee92d2d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 7 Oct 2004 22:31:36 +0000 Subject: [PATCH] fix previous commit --- servers/slapd/acl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index 3af01f6274..dc739b7b03 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -1903,6 +1903,7 @@ aci_set_gather( SetCookie *cookie, struct berval *name, struct berval *attr ) for ( ; ludp->lud_attrs[ nattrs ]; nattrs++ ) { ber_str2bv( ludp->lud_attrs[ nattrs ], 0, 0, &anlist[ nattrs ].an_name ); + anlist[ nattrs ].an_desc = NULL; rc = slap_bv2ad( &anlist[ nattrs ].an_name, &anlist[ nattrs ].an_desc, &text ); if ( rc != LDAP_SUCCESS ) { @@ -1916,6 +1917,7 @@ aci_set_gather( SetCookie *cookie, struct berval *name, struct berval *attr ) } anlist[ nattrs ].an_name = *attr; + anlist[ nattrs ].an_desc = NULL; rc = slap_bv2ad( &anlist[ nattrs ].an_name, &anlist[ nattrs ].an_desc, &text ); if ( rc != LDAP_SUCCESS ) { -- 2.39.5