- allocate 'tmp' as an array of 'char *', and not 'char **' (defect #10112)
Nalin Dahyabhai
13 years ago
406 | 406 |
if (slapi_vattr_values_get(e, (char *) attribute,
|
407 | 407 |
&values, &disposition, &actual_attr,
|
408 | 408 |
0, &buffer_flags) == 0) {
|
409 | |
tmp = malloc(sizeof(char **) *
|
|
409 |
tmp = malloc(sizeof(char *) *
|
410 | 410 |
(slapi_valueset_count(values) + 1));
|
411 | 411 |
if (tmp != NULL) {
|
412 | 412 |
j = 0;
|