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

index 95247cbeef0d375512aa380e48295ac9726bc708..8b26ff3fd8488ed9eb49926b0370df5c8915a1fd 100644 (file)
@@ -120,7 +120,7 @@ ldap_back_modify(
                if ( ml->sml_values != NULL ) {
                        if ( is_oc ) {
                                for (j = 0; ml->sml_values[j].bv_val; j++);
-                               mods[i].mod_values = (struct berval **)ch_malloc((j+1) *
+                               mods[i].mod_bvalues = (struct berval **)ch_malloc((j+1) *
                                        sizeof(struct berval *));
                                for (j = 0; ml->sml_values[j].bv_val; j++) {
                                        ldap_back_map(&li->rwmap.rwm_oc,
@@ -129,7 +129,7 @@ ldap_back_modify(
                                        if (mapped.bv_val == NULL || mapped.bv_val[0] == '\0') {
                                                continue;
                                        }
-                                       mods[i].mod_values[j] = &mapped;
+                                       mods[i].mod_bvalues[j] = &mapped;
                                }
                                mods[i].mod_values[j] = NULL;
 
@@ -144,10 +144,10 @@ ldap_back_modify(
                                }
 
                                for (j = 0; ml->sml_values[j].bv_val; j++);
-                               mods[i].mod_values = (struct berval **)ch_malloc((j+1) *
+                               mods[i].mod_bvalues = (struct berval **)ch_malloc((j+1) *
                                        sizeof(struct berval *));
                                for (j = 0; ml->sml_values[j].bv_val; j++)
-                                       mods[i].mod_values[j] = &ml->sml_values[j];
+                                       mods[i].mod_bvalues[j] = &ml->sml_values[j];
                                mods[i].mod_values[j] = NULL;
                        }
 
index 8fbee1407e8021a7db9c6efacc69690af5a115c0..390dadd640bd8f6a5fc9aedf7d1708884190f045 100644 (file)
@@ -119,14 +119,14 @@ meta_back_modify( Operation *op, SlapReply *rs )
 
                if ( ml->sml_values != NULL ){
                        for (j = 0; ml->sml_values[ j ].bv_val; j++);
-                       mods[ i ].mod_values = (struct berval **)ch_malloc((j+1) *
+                       mods[ i ].mod_bvalues = (struct berval **)ch_malloc((j+1) *
                                sizeof(struct berval *));
                        for (j = 0; ml->sml_values[ j ].bv_val; j++)
-                               mods[ i ].mod_values[ j ] = &ml->sml_values[j];
-                       mods[ i ].mod_values[ j ] = NULL;
+                               mods[ i ].mod_bvalues[ j ] = &ml->sml_values[j];
+                       mods[ i ].mod_bvalues[ j ] = NULL;
 
                } else {
-                       mods[ i ].mod_values = NULL;
+                       mods[ i ].mod_bvalues = NULL;
                }
 
                i++;