]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit for modify/delete
authorHoward Chu <hyc@openldap.org>
Tue, 3 Feb 2009 01:58:57 +0000 (01:58 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 3 Feb 2009 01:58:57 +0000 (01:58 +0000)
servers/slapd/overlays/memberof.c

index 8c72ad1e6ad46112176794724140d3ef889099d5..6852de0c464bc66f52d2836f540fa7bdcae2aa33 100644 (file)
@@ -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;
 
                }
        }