diff options
-rw-r--r-- | src/back-sch-nss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/back-sch-nss.c b/src/back-sch-nss.c index c8aaa20..469e46c 100644 --- a/src/back-sch-nss.c +++ b/src/back-sch-nss.c @@ -431,7 +431,7 @@ repeat: } } while (rc != ngroups); - entries = malloc(sizeof(Slapi_Entry *) * ngroups); + entries = calloc(ngroups, sizeof(Slapi_Entry *)); if (entries == NULL) { free(grouplist); return NULL; |