From: Pierangelo Masarati Date: Mon, 3 Sep 2007 16:22:53 +0000 (+0000) Subject: fix helper pointer inizialization (coverity) X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=55e908dca2f353add49e79f1d0337a966b0a60e4;p=openldap fix helper pointer inizialization (coverity) --- diff --git a/servers/slapd/overlays/memberof.c b/servers/slapd/overlays/memberof.c index 8e282e9991..48b7f1a236 100644 --- a/servers/slapd/overlays/memberof.c +++ b/servers/slapd/overlays/memberof.c @@ -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;