diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2011-01-03 14:30:50 -0500 |
---|---|---|
committer | Nalin Dahyabhai <nalin@redhat.com> | 2011-01-03 14:30:50 -0500 |
commit | 207012ae1d9878a207b9875178a56d98798a8ba7 (patch) | |
tree | df461a2fbe70338c7968979cda15171f3bdadee3 /src/back-shr.c | |
parent | b7ebcde9905d28cc97f489f39c50062802d492ee (diff) | |
download | slapi-nis-207012ae1d9878a207b9875178a56d98798a8ba7.tar.gz slapi-nis-207012ae1d9878a207b9875178a56d98798a8ba7.tar.xz slapi-nis-207012ae1d9878a207b9875178a56d98798a8ba7.zip |
- allocate 'tmp' as an array of 'char *', and not 'char **' (defect #10112)
Diffstat (limited to 'src/back-shr.c')
-rw-r--r-- | src/back-shr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/back-shr.c b/src/back-shr.c index ef58d68..bf97a94 100644 --- a/src/back-shr.c +++ b/src/back-shr.c @@ -407,7 +407,7 @@ backend_shr_get_vattr_strlist(struct plugin_state *state, if (slapi_vattr_values_get(e, (char *) attribute, &values, &disposition, &actual_attr, 0, &buffer_flags) == 0) { - tmp = malloc(sizeof(char **) * + tmp = malloc(sizeof(char *) * (slapi_valueset_count(values) + 1)); if (tmp != NULL) { j = 0; |