]> git.sur5r.net Git - openldap/commitdiff
Fix warning in assignment
authorLuke Howard <lukeh@openldap.org>
Thu, 15 Apr 2004 02:37:40 +0000 (02:37 +0000)
committerLuke Howard <lukeh@openldap.org>
Thu, 15 Apr 2004 02:37:40 +0000 (02:37 +0000)
servers/slapd/back-ldap/modify.c
servers/slapd/back-meta/modify.c

index 8b26ff3fd8488ed9eb49926b0370df5c8915a1fd..24b7617d606e54dc474eaa3a39c24f2debab1ac9 100644 (file)
@@ -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 );
index 390dadd640bd8f6a5fc9aedf7d1708884190f045..8071a4141c5d1e97fe7b54c0106b503204e098b8 100644 (file)
@@ -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 );