From 207012ae1d9878a207b9875178a56d98798a8ba7 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Mon, 3 Jan 2011 14:30:50 -0500 Subject: - allocate 'tmp' as an array of 'char *', and not 'char **' (defect #10112) --- src/back-shr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/back-shr.c') 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; -- cgit