From: Howard Chu Date: Tue, 3 Feb 2009 01:58:57 +0000 (+0000) Subject: Fix prev commit for modify/delete X-Git-Tag: ACLCHECK_0~893 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cd0f8dec94ad00b5e407231b558e562739ab05ab;p=openldap Fix prev commit for modify/delete --- diff --git a/servers/slapd/overlays/memberof.c b/servers/slapd/overlays/memberof.c index 8c72ad1e6a..6852de0c46 100644 --- a/servers/slapd/overlays/memberof.c +++ b/servers/slapd/overlays/memberof.c @@ -298,7 +298,7 @@ memberof_isGroupOrMember( Operation *op, memberof_is_t *iswhatp, memberof_cbinfo if ( mc.foundit ) { iswhat |= MEMBEROF_IS_GROUP; - mci->member = mc.vals; + if ( mc.vals ) mci->member = mc.vals; } } @@ -318,7 +318,7 @@ memberof_isGroupOrMember( Operation *op, memberof_is_t *iswhatp, memberof_cbinfo if ( mc.foundit ) { iswhat |= MEMBEROF_IS_MEMBER; - mci->memberof = mc.vals; + if ( mc.vals ) mci->memberof = mc.vals; } }