Skip to content
Snippets Groups Projects
Commit 927efd4a authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix ITS#5136

parent 76974d41
No related branches found
No related tags found
No related merge requests found
......@@ -718,7 +718,7 @@ ordered_value_add(
}
new = ch_malloc( (anum+vnum+1) * sizeof(struct berval));
if ( a->a_nvals && a->a_nvals != a->a_vals ) {
if ( ( a->a_nvals && a->a_nvals != a->a_vals ) || ( nvals != NULL && nvals != vals ) ) {
nnew = ch_malloc( (anum+vnum+1) * sizeof(struct berval));
/* Shouldn't happen... */
if ( !nvals ) nvals = vals;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment