]> git.sur5r.net Git - openldap/commitdiff
fix helper pointer inizialization (coverity)
authorPierangelo Masarati <ando@openldap.org>
Mon, 3 Sep 2007 16:22:53 +0000 (16:22 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 3 Sep 2007 16:22:53 +0000 (16:22 +0000)
servers/slapd/overlays/memberof.c

index 8e282e99910c3cf0424c77989183d737e8c39224..48b7f1a2363d4665f6dad5be2f5c152b99300a7c 100644 (file)
@@ -444,6 +444,7 @@ memberof_value_modify(
                assert( !BER_BVISNULL( new_dn ) );
                assert( !BER_BVISNULL( new_ndn ) );
 
+               ml = &mod[ 1 ];
                ml->sml_op = LDAP_MOD_ADD;
 
                ml->sml_values[ 0 ] = *new_dn;
@@ -463,6 +464,7 @@ memberof_value_modify(
                assert( !BER_BVISNULL( old_dn ) );
                assert( !BER_BVISNULL( old_ndn ) );
 
+               ml = &mod[ 1 ];
                ml->sml_op = LDAP_MOD_DELETE;
 
                ml->sml_values[ 0 ] = *old_dn;