From: Luke Howard Date: Thu, 15 Apr 2004 02:37:40 +0000 (+0000) Subject: Fix warning in assignment X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=22f425c1f3481a7fe2e14b6b77cbd4142cf1564b;p=openldap Fix warning in assignment --- diff --git a/servers/slapd/back-ldap/modify.c b/servers/slapd/back-ldap/modify.c index 8b26ff3fd8..24b7617d60 100644 --- a/servers/slapd/back-ldap/modify.c +++ b/servers/slapd/back-ldap/modify.c @@ -131,7 +131,7 @@ ldap_back_modify( } mods[i].mod_bvalues[j] = &mapped; } - mods[i].mod_values[j] = NULL; + mods[i].mod_bvalues[j] = NULL; } else { if ( ml->sml_desc->ad_type->sat_syntax == @@ -148,11 +148,11 @@ ldap_back_modify( sizeof(struct berval *)); for (j = 0; ml->sml_values[j].bv_val; j++) mods[i].mod_bvalues[j] = &ml->sml_values[j]; - mods[i].mod_values[j] = NULL; + mods[i].mod_bvalues[j] = NULL; } } else { - mods[i].mod_values = NULL; + mods[i].mod_bvalues = NULL; } i++; @@ -186,7 +186,7 @@ cleanup:; free( mdn.bv_val ); } for (i=0; modv[i]; i++) { - ch_free(modv[i]->mod_values); + ch_free(modv[i]->mod_bvalues); } ch_free( mods ); ch_free( modv ); diff --git a/servers/slapd/back-meta/modify.c b/servers/slapd/back-meta/modify.c index 390dadd640..8071a4141c 100644 --- a/servers/slapd/back-meta/modify.c +++ b/servers/slapd/back-meta/modify.c @@ -141,7 +141,7 @@ cleanup:; } if ( modv != NULL ) { for ( i = 0; modv[ i ]; i++) { - free( modv[ i ]->mod_values ); + free( modv[ i ]->mod_bvalues ); } } free( mods );