mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
fix attribute delete (ITS#2158) patch provided by Timofey B. Nickonov <ntb@mts.ru>
This commit is contained in:
parent
2d98b19bf7
commit
a777c53564
@ -139,13 +139,18 @@ ldap_back_modify(
|
|||||||
ml->sml_bvalues, conn );
|
ml->sml_bvalues, conn );
|
||||||
}
|
}
|
||||||
#endif /* ENABLE_REWRITE */
|
#endif /* ENABLE_REWRITE */
|
||||||
|
|
||||||
for (j = 0; ml->sml_bvalues[j].bv_val; j++);
|
if ( ml->sml_bvalues != NULL ) {
|
||||||
mods[i].mod_bvalues = (struct berval **)ch_malloc((j+1) *
|
for (j = 0; ml->sml_bvalues[j].bv_val; j++);
|
||||||
sizeof(struct berval *));
|
mods[i].mod_bvalues = (struct berval **)ch_malloc((j+1) *
|
||||||
for (j = 0; ml->sml_bvalues[j].bv_val; j++)
|
sizeof(struct berval *));
|
||||||
mods[i].mod_bvalues[j] = &ml->sml_bvalues[j];
|
for (j = 0; ml->sml_bvalues[j].bv_val; j++)
|
||||||
mods[i].mod_bvalues[j] = NULL;
|
mods[i].mod_bvalues[j] = &ml->sml_bvalues[j];
|
||||||
|
mods[i].mod_bvalues[j] = NULL;
|
||||||
|
} else {
|
||||||
|
mods[i].mod_bvalues = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
modv[i] = 0;
|
modv[i] = 0;
|
||||||
|
@ -179,12 +179,18 @@ meta_back_modify(
|
|||||||
ml->sml_bvalues, conn );
|
ml->sml_bvalues, conn );
|
||||||
}
|
}
|
||||||
|
|
||||||
for (j = 0; ml->sml_bvalues[ j ].bv_val; j++);
|
if ( ml->sml_bvalues != NULL ){
|
||||||
mods[ i ].mod_bvalues = (struct berval **)ch_malloc((j+1) *
|
for (j = 0; ml->sml_bvalues[ j ].bv_val; j++);
|
||||||
sizeof(struct berval *));
|
mods[ i ].mod_bvalues = (struct berval **)ch_malloc((j+1) *
|
||||||
for (j = 0; ml->sml_bvalues[ j ].bv_val; j++)
|
sizeof(struct berval *));
|
||||||
mods[ i ].mod_bvalues[ j ] = &ml->sml_bvalues[j];
|
for (j = 0; ml->sml_bvalues[ j ].bv_val; j++)
|
||||||
mods[ i ].mod_bvalues[ j ] = NULL;
|
mods[ i ].mod_bvalues[ j ] = &ml->sml_bvalues[j];
|
||||||
|
mods[ i ].mod_bvalues[ j ] = NULL;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
mods[ i ].mod_bvalues = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
modv[ i ] = 0;
|
modv[ i ] = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user