From 55e908dca2f353add49e79f1d0337a966b0a60e4 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 3 Sep 2007 16:22:53 +0000 Subject: [PATCH] fix helper pointer inizialization (coverity) --- servers/slapd/overlays/memberof.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5